Mir
|
Interface to the display subsystem. More...
#include <display.h>
Public Member Functions | |
virtual void | for_each_display_sync_group (std::function< void(DisplaySyncGroup &)> const &f)=0 |
Executes a functor for each output group. 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... | |
virtual std::unique_ptr< VirtualOutput > | create_virtual_output (int width, int height)=0 |
Creates a virtual output. More... | |
Display ()=default | |
virtual | ~Display ()=default |
Interface to the display subsystem.
|
default |
|
virtualdefault |
|
pure virtual |
Gets a copy of the current output configuration.
Implemented in mir::graphics::nested::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::Display.
|
pure virtual |
Sets a new output configuration.
Implemented in mir::graphics::nested::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::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::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::Display.
|
pure virtual |
Create a hardware cursor object.
Implemented in mir::graphics::nested::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::Display.
|
pure virtual |
Creates a virtual output.
Implemented in mir::graphics::nested::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::Display.
|
pure virtual |
Executes a functor for each output group.
Implemented in mir::graphics::nested::Display, and mir::graphics::eglstream::Display.
|
pure virtual |
Pauses the display.
This method may temporarily (until resumed) release any resources associated with the display subsystem.
Implemented in mir::graphics::nested::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::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::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::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::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::Display.
|
pure virtual |
Resumes the display.
Implemented in mir::graphics::nested::Display, mir::graphics::X::Display, mir::graphics::mesa::Display, mir::graphics::android::Display, and mir::graphics::eglstream::Display.
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016