Mir
|
#include <display.h>
Public Member Functions | |
Display (std::shared_ptr< Platform > const &platform, std::shared_ptr< DisplayConfigurationPolicy > const &initial_conf_policy, std::shared_ptr< GLConfig > const &gl_config, std::shared_ptr< DisplayReport > const &listener) | |
~Display () | |
geometry::Rectangle | view_area () const |
void | for_each_display_buffer (std::function< void(graphics::DisplayBuffer &)> const &f) |
std::unique_ptr < DisplayConfiguration > | configuration () const override |
Gets a copy of the current output configuration. More... | |
void | configure (DisplayConfiguration const &conf) override |
Sets a new output configuration. More... | |
void | register_configuration_change_handler (EventHandlerRegister &handlers, DisplayConfigurationChangeHandler const &conf_change_handler) |
Registers a handler for display configuration changes. More... | |
void | register_pause_resume_handlers (EventHandlerRegister &handlers, DisplayPauseHandler const &pause_handler, DisplayResumeHandler const &resume_handler) |
Registers handlers for pausing and resuming the display subsystem. More... | |
void | pause () |
Pauses the display. More... | |
void | resume () |
Resumes the display. More... | |
std::shared_ptr< graphics::Cursor > | create_hardware_cursor (std::shared_ptr< CursorImage > const &initial_image) |
Create a hardware cursor object. More... | |
std::unique_ptr< GLContext > | create_gl_context () |
Creates a GLContext object that shares resources with the Display's GL context. More... | |
![]() | |
virtual void | for_each_display_buffer (std::function< void(DisplayBuffer &)> const &f)=0 |
Executes a functor for each output framebuffer. More... | |
Additional Inherited Members | |
![]() | |
Display ()=default | |
mir::graphics::mesa::Display::Display | ( | std::shared_ptr< Platform > const & | platform, |
std::shared_ptr< DisplayConfigurationPolicy > const & | initial_conf_policy, | ||
std::shared_ptr< GLConfig > const & | gl_config, | ||
std::shared_ptr< DisplayReport > const & | listener | ||
) |
|
virtual |
Reimplemented from mir::graphics::Display.
|
overridevirtual |
Gets a copy of the current output configuration.
Implements mir::graphics::Display.
|
overridevirtual |
Sets a new output configuration.
Implements mir::graphics::Display.
|
virtual |
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.
|
virtual |
Create a hardware cursor object.
Implements mir::graphics::Display.
void mir::graphics::mesa::Display::for_each_display_buffer | ( | std::function< void(graphics::DisplayBuffer &)> const & | f | ) |
|
virtual |
Pauses the display.
This method may temporarily (until resumed) release any resources associated with the display subsystem.
Implements mir::graphics::Display.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Resumes the display.
Implements mir::graphics::Display.
geometry::Rectangle mir::graphics::mesa::Display::view_area | ( | ) | const |
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014