Mir
|
Interface to the display subsystem. More...
#include <display.h>
Public Member Functions | |
virtual void | for_each_display_buffer (std::function< void(DisplayBuffer &)> const &f)=0 |
Executes a functor for each output framebuffer. More... | |
virtual std::unique_ptr< DisplayConfiguration > | configuration () const =0 |
Gets a copy of the current output configuration. More... | |
virtual void | configure (DisplayConfiguration const &conf)=0 |
Sets a new output configuration. More... | |
virtual void | register_configuration_change_handler (EventHandlerRegister &handlers, DisplayConfigurationChangeHandler const &conf_change_handler)=0 |
Registers a handler for display configuration changes. More... | |
virtual void | register_pause_resume_handlers (EventHandlerRegister &handlers, DisplayPauseHandler const &pause_handler, DisplayResumeHandler const &resume_handler)=0 |
Registers handlers for pausing and resuming the display subsystem. More... | |
virtual void | pause ()=0 |
Pauses the display. More... | |
virtual void | resume ()=0 |
Resumes the display. More... | |
virtual std::shared_ptr< Cursor > | create_hardware_cursor (std::shared_ptr< CursorImage > const &initial_image)=0 |
Create a hardware cursor object. More... | |
virtual std::unique_ptr< GLContext > | create_gl_context ()=0 |
Creates a GLContext object that shares resources with the Display's GL context. More... | |
Protected Member Functions | |
Display ()=default | |
virtual | ~Display () |
Interface to the display subsystem.
|
protecteddefault |
|
inlineprotectedvirtual |
Reimplemented in mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure virtual |
Gets a copy of the current output configuration.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure virtual |
Sets a new output configuration.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure 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.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure virtual |
Create a hardware cursor object.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure virtual |
Executes a functor for each output framebuffer.
Implemented in mir::graphics::nested::NestedDisplay.
|
pure virtual |
Pauses the display.
This method may temporarily (until resumed) release any resources associated with the display subsystem.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure 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.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure 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.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
|
pure virtual |
Resumes the display.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::offscreen::Display, mir::graphics::mesa::Display, and mir::graphics::android::Display.
Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015