#include <default_persistent_surface_store.h>
mir::shell::DefaultPersistentSurfaceStore::DefaultPersistentSurfaceStore |
( |
| ) |
|
mir::shell::DefaultPersistentSurfaceStore::~DefaultPersistentSurfaceStore |
( |
| ) |
|
|
override |
Id mir::shell::DefaultPersistentSurfaceStore::id_for_surface |
( |
std::shared_ptr< scene::Surface > const & |
surface | ) |
|
|
overridevirtual |
Acquire ID for a Surface.
- Parameters
-
[in] | surface | Surface to query or generate an ID for |
- Returns
- The ID for this surface.
- Note
- If
- surface has not yet had an ID generated, this generates its ID.
-
This does not extend the lifetime of
Implements mir::shell::PersistentSurfaceStore.
std::shared_ptr<scene::Surface> mir::shell::DefaultPersistentSurfaceStore::surface_for_id |
( |
Id const & |
id | ) |
const |
|
overridevirtual |
Lookup Surface by ID.
- Parameters
-
[in] | id | ID of surface to lookup |
- Returns
- The surface with ID
- id. If this surface has been destroyed, but the store retains a reference, returns nullptr.
- Exceptions
-
std::out_of_range | if the store has no reference for a surface with
|
Implements mir::shell::PersistentSurfaceStore.
The documentation for this class was generated from the following file:
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015