Mir
|
#include <display.h>
Public Member Functions | |
Display (std::shared_ptr< Platform > const &platform, std::shared_ptr< HostConnection > const &connection, std::shared_ptr< DisplayReport > const &display_report, std::shared_ptr< DisplayConfigurationPolicy > const &conf_policy, std::shared_ptr< GLConfig > const &gl_config) | |
~Display () noexcept | |
void | for_each_display_sync_group (std::function< void(DisplaySyncGroup &)>const &f) override |
Executes a functor for each output group. More... | |
std::unique_ptr< DisplayConfiguration > | configuration () const override |
Gets a copy of 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::shared_ptr< graphics::Cursor > | create_hardware_cursor (std::shared_ptr< CursorImage > const &initial_image) override |
Create a 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... | |
std::unique_ptr< VirtualOutput > | create_virtual_output (int width, int height) override |
Creates a virtual output. More... | |
![]() | |
Display ()=default | |
mir::graphics::nested::Display::Display | ( | std::shared_ptr< Platform > const & | platform, |
std::shared_ptr< HostConnection > const & | connection, | ||
std::shared_ptr< DisplayReport > const & | display_report, | ||
std::shared_ptr< DisplayConfigurationPolicy > const & | conf_policy, | ||
std::shared_ptr< GLConfig > const & | gl_config | ||
) |
|
virtualnoexcept |
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.
|
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 |
Create a hardware cursor object.
Implements mir::graphics::Display.
|
overridevirtual |
Creates a virtual output.
Implements mir::graphics::Display.
|
overridevirtual |
Executes a functor for each output group.
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.
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016