Mir
|
A store for Surface information divorced from the lifetime of any given Session. More...
#include <persistent_surface_store.h>
Classes | |
class | Id |
Public Member Functions | |
virtual | ~PersistentSurfaceStore ()=default |
virtual Id | id_for_surface (std::shared_ptr< scene::Surface > const &surface)=0 |
Acquire ID for a Surface. More... | |
virtual std::shared_ptr< scene::Surface > | surface_for_id (Id const &id) const =0 |
Lookup Surface by ID. More... | |
A store for Surface information divorced from the lifetime of any given Session.
This provides the backing for persistent references to Surface objects, both across client Sessions and across shell restarts, for features such as surface position/size restoration.
|
virtualdefault |
|
pure virtual |
Acquire ID for a Surface.
[in] | surface | Surface to query or generate an ID for |
Implemented in mir::shell::DefaultPersistentSurfaceStore.
|
pure virtual |
Lookup Surface by ID.
[in] | id | ID of surface to lookup |
std::out_of_range | if the store has no reference for a surface with
|
Implemented in mir::shell::DefaultPersistentSurfaceStore.
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015