Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
mir::graphics::gbm::GBMDisplay Class Reference

#include <gbm_display.h>

Inheritance diagram for mir::graphics::gbm::GBMDisplay:
Inheritance graph
[legend]

Public Member Functions

 GBMDisplay (std::shared_ptr< GBMPlatform > const &platform, std::shared_ptr< VideoDevices > const &video_devices, std::shared_ptr< DisplayConfigurationPolicy > const &initial_conf_policy, std::shared_ptr< DisplayReport > const &listener)
 
 ~GBMDisplay ()
 
geometry::Rectangle view_area () const
 
void for_each_display_buffer (std::function< void(DisplayBuffer &)> const &f)
 Executes a functor for each output framebuffer. More...
 
std::shared_ptr
< DisplayConfiguration
configuration ()
 Gets the current output configuration. More...
 
void configure (DisplayConfiguration const &conf)
 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::weak_ptr< Cursorthe_cursor ()
 Gets the hardware cursor object. More...
 
std::unique_ptr< GLContextcreate_gl_context ()
 Creates a GLContext object that shares resources with the Display's GL context. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mir::graphics::Display
 Display ()=default
 
virtual ~Display ()
 

Constructor & Destructor Documentation

mir::graphics::gbm::GBMDisplay::GBMDisplay ( std::shared_ptr< GBMPlatform > const &  platform,
std::shared_ptr< VideoDevices > const &  video_devices,
std::shared_ptr< DisplayConfigurationPolicy > const &  initial_conf_policy,
std::shared_ptr< DisplayReport > const &  listener 
)
mir::graphics::gbm::GBMDisplay::~GBMDisplay ( )

Member Function Documentation

std::shared_ptr< mg::DisplayConfiguration > mir::graphics::gbm::GBMDisplay::configuration ( )
virtual

Gets the current output configuration.

Implements mir::graphics::Display.

void mir::graphics::gbm::GBMDisplay::configure ( DisplayConfiguration const &  conf)
virtual

Sets a new output configuration.

Implements mir::graphics::Display.

std::unique_ptr< mg::GLContext > mir::graphics::gbm::GBMDisplay::create_gl_context ( )
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.

void mir::graphics::gbm::GBMDisplay::for_each_display_buffer ( std::function< void(DisplayBuffer &)> const &  f)
virtual

Executes a functor for each output framebuffer.

Implements mir::graphics::Display.

void mir::graphics::gbm::GBMDisplay::pause ( )
virtual

Pauses the display.

This method may temporarily (until resumed) release any resources associated with the display subsystem.

Implements mir::graphics::Display.

void mir::graphics::gbm::GBMDisplay::register_configuration_change_handler ( EventHandlerRegister handlers,
DisplayConfigurationChangeHandler const &  conf_change_handler 
)
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.

void mir::graphics::gbm::GBMDisplay::register_pause_resume_handlers ( EventHandlerRegister handlers,
DisplayPauseHandler const &  pause_handler,
DisplayResumeHandler const &  resume_handler 
)
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.

void mir::graphics::gbm::GBMDisplay::resume ( )
virtual

Resumes the display.

Implements mir::graphics::Display.

auto mir::graphics::gbm::GBMDisplay::the_cursor ( )
virtual

Gets the hardware cursor object.

Implements mir::graphics::Display.

geometry::Rectangle mir::graphics::gbm::GBMDisplay::view_area ( ) const

The documentation for this class was generated from the following files:

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013