Mir
|
#include <nested_display.h>
Public Member Functions | |
NestedDisplay (std::shared_ptr< HostConnection > const &connection, std::shared_ptr< input::EventFilter > const &event_handler, std::shared_ptr< DisplayReport > const &display_report) | |
~NestedDisplay () noexcept | |
void | for_each_display_buffer (std::function< void(DisplayBuffer &)>const &f) override |
Executes a functor for each output framebuffer. More... | |
std::shared_ptr < DisplayConfiguration > | configuration () override |
Gets the current output configuration. More... | |
void | configure (DisplayConfiguration const &) override |
Sets a new output configuration. More... | |
void | register_configuration_change_handler (EventHandlerRegister &handlers, DisplayConfigurationChangeHandler const &conf_change_handler) override |
Registers a handler for display configuration changes. More... | |
void | register_pause_resume_handlers (EventHandlerRegister &handlers, DisplayPauseHandler const &pause_handler, DisplayResumeHandler const &resume_handler) override |
Registers handlers for pausing and resuming the display subsystem. More... | |
void | pause () override |
Pauses the display. More... | |
void | resume () override |
Resumes the display. More... | |
std::weak_ptr< Cursor > | the_cursor () override |
Gets the hardware cursor object. More... | |
std::unique_ptr < graphics::GLContext > | create_gl_context () override |
Creates a GLContext object that shares resources with the Display's GL context. More... | |
Additional Inherited Members | |
![]() | |
Display ()=default | |
virtual | ~Display () |
mir::graphics::nested::NestedDisplay::NestedDisplay | ( | std::shared_ptr< HostConnection > const & | connection, |
std::shared_ptr< input::EventFilter > const & | event_handler, | ||
std::shared_ptr< DisplayReport > const & | display_report | ||
) |
|
noexcept |
|
overridevirtual |
Gets the current output configuration.
Implements mir::graphics::Display.
|
overridevirtual |
Sets a new output configuration.
Implements mir::graphics::Display.
|
overridevirtual |
Creates a GLContext object that shares resources with the Display's GL context.
This is usually implemented as a shared EGL context. This object can be used to access graphics resources from an arbitrary thread.
Implements mir::graphics::Display.
|
overridevirtual |
Executes a functor for each output framebuffer.
Implements mir::graphics::Display.
|
overridevirtual |
Pauses the display.
This method may temporarily (until resumed) release any resources associated with the display subsystem.
Implements mir::graphics::Display.
|
overridevirtual |
Registers a handler for display configuration changes.
Note that the handler is called only for hardware changes (e.g. monitor plugged/unplugged), not for changes initiated by software (e.g. modesetting).
The implementation should use the functionality provided by the MainLoop to register the handlers in a way appropriate for the platform.
Implements mir::graphics::Display.
|
overridevirtual |
Registers handlers for pausing and resuming the display subsystem.
The implementation should use the functionality provided by the EventHandlerRegister to register the handlers in a way appropriate for the platform.
Implements mir::graphics::Display.
|
overridevirtual |
Resumes the display.
Implements mir::graphics::Display.
|
overridevirtual |
Gets the hardware cursor object.
Implements mir::graphics::Display.
Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013