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::shared_ptr < DisplayConfiguration > | configuration ()=0 |
Gets 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::weak_ptr< Cursor > | the_cursor ()=0 |
Gets the 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 |
|
pure virtual |
Gets the current output configuration.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
|
pure virtual |
Sets a new output configuration.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
|
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::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
|
pure virtual |
Executes a functor for each output framebuffer.
Implemented in mir::graphics::nested::NestedDisplay, and mir::graphics::gbm::GBMDisplay.
|
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::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
|
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::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
|
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::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
|
pure virtual |
Resumes the display.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
|
pure virtual |
Gets the hardware cursor object.
Implemented in mir::graphics::nested::NestedDisplay, mir::graphics::gbm::GBMDisplay, and mir::test::doubles::NullDisplay.
Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013