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

#include <null_display.h>

Inheritance diagram for mir::test::doubles::NullDisplay:
Inheritance graph
[legend]

Public Member Functions

void for_each_display_buffer (std::function< void(graphics::DisplayBuffer &)> const &)
 
std::shared_ptr
< graphics::DisplayConfiguration
configuration ()
 Gets the current output configuration. More...
 
void configure (graphics::DisplayConfiguration const &)
 Sets a new output configuration. More...
 
void register_configuration_change_handler (graphics::EventHandlerRegister &, graphics::DisplayConfigurationChangeHandler const &) override
 Registers a handler for display configuration changes. More...
 
void register_pause_resume_handlers (graphics::EventHandlerRegister &, graphics::DisplayPauseHandler const &, graphics::DisplayResumeHandler const &) override
 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< graphics::Cursorthe_cursor ()
 Gets the hardware cursor object. More...
 
std::unique_ptr
< graphics::GLContext
create_gl_context ()
 Creates a GLContext object that shares resources with the Display's GL context. More...
 
- Public Member Functions inherited from mir::graphics::Display
virtual void for_each_display_buffer (std::function< void(DisplayBuffer &)> const &f)=0
 Executes a functor for each output framebuffer. More...
 

Additional Inherited Members

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

Member Function Documentation

std::shared_ptr<graphics::DisplayConfiguration> mir::test::doubles::NullDisplay::configuration ( )
inlinevirtual

Gets the current output configuration.

Implements mir::graphics::Display.

void mir::test::doubles::NullDisplay::configure ( graphics::DisplayConfiguration const &  conf)
inlinevirtual

Sets a new output configuration.

Implements mir::graphics::Display.

std::unique_ptr<graphics::GLContext> mir::test::doubles::NullDisplay::create_gl_context ( )
inlinevirtual

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::test::doubles::NullDisplay::for_each_display_buffer ( std::function< void(graphics::DisplayBuffer &)> const &  )
inline
void mir::test::doubles::NullDisplay::pause ( )
inlinevirtual

Pauses the display.

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

Implements mir::graphics::Display.

void mir::test::doubles::NullDisplay::register_configuration_change_handler ( graphics::EventHandlerRegister handlers,
graphics::DisplayConfigurationChangeHandler const &  conf_change_handler 
)
inlineoverridevirtual

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::test::doubles::NullDisplay::register_pause_resume_handlers ( graphics::EventHandlerRegister handlers,
graphics::DisplayPauseHandler const &  pause_handler,
graphics::DisplayResumeHandler const &  resume_handler 
)
inlineoverridevirtual

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::test::doubles::NullDisplay::resume ( )
inlinevirtual

Resumes the display.

Implements mir::graphics::Display.

std::weak_ptr<graphics::Cursor> mir::test::doubles::NullDisplay::the_cursor ( )
inlinevirtual

Gets the hardware cursor object.

Implements mir::graphics::Display.


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

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