#include <surface_stack.h>
mir::scene::SurfaceStack::SurfaceStack |
( |
std::shared_ptr< InputRegistrar > const & |
input_registrar, |
|
|
std::shared_ptr< SceneReport > const & |
report |
|
) |
| |
|
explicit |
virtual mir::scene::SurfaceStack::~SurfaceStack |
( |
| ) |
|
|
inlinevirtualnoexcept |
void mir::scene::SurfaceStack::for_each |
( |
std::function< void(std::shared_ptr< input::InputChannel > const &)> const & |
callback | ) |
|
Generate a valid list of renderables based on the current state of the Scene.
- Returns
- a list of mg::Renderables. The list is in stacking order from back to front.
Implements mir::compositor::Scene.
virtual void mir::scene::SurfaceStack::lock |
( |
| ) |
|
|
virtual |
virtual void mir::scene::SurfaceStack::raise |
( |
std::weak_ptr< Surface > const & |
surface | ) |
|
|
overridevirtual |
virtual void mir::scene::SurfaceStack::remove_surface |
( |
std::weak_ptr< Surface > const & |
surface | ) |
|
|
overridevirtual |
virtual void mir::scene::SurfaceStack::set_change_callback |
( |
std::function< void()> const & |
f | ) |
|
|
virtual |
Sets a callback to be called whenever the state of the Scene changes.
The supplied callback should not directly or indirectly (e.g., by changing a property of a surface) change the state of the Scene, otherwise a deadlock may occur.
Implements mir::compositor::Scene.
virtual void mir::scene::SurfaceStack::unlock |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files:
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014