| 162 | } |
| 163 | |
| 164 | std::string node_t::stringify() const |
| 165 | { |
| 166 | std::string description = "node "; |
| 167 | int layer_idx = get_layer_index(this); |
| 168 | |
| 169 | if (layer_idx >= 0) |
| 170 | { |
| 171 | static constexpr const char *layer_names[] = { |
| 172 | "background", |
| 173 | "bottom", |
| 174 | "workspace", |
| 175 | "top", |
| 176 | "unmanaged", |
| 177 | "overlay", |
| 178 | "lock", |
| 179 | "dwidget" |
| 180 | }; |
| 181 | |
| 182 | static_assert((sizeof(layer_names) / sizeof(layer_names[0])) == |
| 183 | (size_t)layer::ALL_LAYERS); |
| 184 | description = "layer_"; |
| 185 | description += layer_names[layer_idx]; |
| 186 | } |
| 187 | |
| 188 | return description + " " + stringify_flags(); |
| 189 | } |
| 190 | |
| 191 | wf::pointf_t node_t::to_local(const wf::pointf_t& point) |
| 192 | { |
no test coverage detected