MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / stringify

Method stringify

src/core/scene.cpp:164–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164std::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
191wf::pointf_t node_t::to_local(const wf::pointf_t& point)
192{

Callers 1

_dump_sceneFunction · 0.45

Calls 2

get_layer_indexFunction · 0.85
to_stringMethod · 0.45

Tested by

no test coverage detected