MCPcopy Create free account
hub / github.com/canonical/mir / add_input_visualization

Method add_input_visualization

src/server/scene/surface_stack.cpp:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void ms::SurfaceStack::add_input_visualization(
199 std::shared_ptr<mg::Renderable> const& overlay)
200{
201 {
202 RecursiveWriteLock lg(guard);
203 overlays.push_back(overlay);
204 }
205 emit_scene_changed();
206}
207
208void ms::SurfaceStack::remove_input_visualization(
209 std::weak_ptr<mg::Renderable> const& weak_overlay)

Callers 2

idleMethod · 0.45
visualize_touchesMethod · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected