19 #ifndef MIR_SCENE_SIMPLE_OBSERVER_H_
20 #define MIR_SCENE_SIMPLE_OBSERVER_H_
32 class SurfaceObserver;
41 std::function<
void()>
const& scene_notify_change,
42 std::function<
void(
int)>
const& buffer_notify_change);
55 std::function<void()>
const scene_notify_change;
56 std::function<void(int)>
const buffer_notify_change;
58 std::mutex surface_observers_guard;
59 std::map<Surface*, std::weak_ptr<SurfaceObserver>> surface_observers;
61 void add_surface_observer(
Surface* surface);
67 #endif // MIR_SCENE_SIMPLE_OBSERVER_H_
~LegacySceneChangeNotification()
Definition: legacy_scene_change_notification.cpp:37
All things Mir.
Definition: atomic_callback.h:25
LegacySceneChangeNotification(std::function< void()> const &scene_notify_change, std::function< void(int)> const &buffer_notify_change)
Definition: legacy_scene_change_notification.cpp:28
An observer for top level notifications of scene changes. In order to receive more granular change no...
Definition: observer.h:33
void surface_added(Surface *surface) override
Definition: legacy_scene_change_notification.cpp:61
void scene_changed() override
Definition: legacy_scene_change_notification.cpp:92
void surfaces_reordered() override
Definition: legacy_scene_change_notification.cpp:87
void surface_removed(Surface *surface) override
Definition: legacy_scene_change_notification.cpp:71
void end_observation() override
Definition: legacy_scene_change_notification.cpp:97
void surface_exists(Surface *surface) override
Definition: legacy_scene_change_notification.cpp:66
Definition: legacy_scene_change_notification.h:37