19 #ifndef MIR_SHELL_PERSISTENT_SURFACE_STORE_H_ 20 #define MIR_SHELL_PERSISTENT_SURFACE_STORE_H_ 25 #include <uuid/uuid.h> 60 virtual Id id_for_surface(std::shared_ptr<scene::Surface>
const& surface) = 0;
69 virtual std::shared_ptr<scene::Surface> surface_for_id(
Id const&
id)
const = 0;
101 Id& operator=(
Id const& rhs);
111 friend struct std::hash<
Id>;
127 result_type operator()(argument_type
const& uuid)
const;
131 #endif // MIR_SHELL_PERSISTENT_SURFACE_STORE_H_ All things Mir.
Definition: atomic_callback.h:25
mir::shell::PersistentSurfaceStore::Id Id
Definition: persistent_surface_store.cpp:24
bool operator==(const SurfaceCreationParameters &lhs, const SurfaceCreationParameters &rhs)
Definition: surface_creation_parameters.cpp:137
A store for Surface information divorced from the lifetime of any given Session.
Definition: persistent_surface_store.h:46
mir::shell::PersistentSurfaceStore::Id argument_type
Definition: persistent_surface_store.h:124
Definition: persistent_surface_store.h:85
std::size_t result_type
Definition: persistent_surface_store.h:125