19 #ifndef MIR_TEST_DOUBLES_NULL_DISPLAY_H_
20 #define MIR_TEST_DOUBLES_NULL_DISPLAY_H_
40 std::this_thread::yield();
42 std::unique_ptr<graphics::DisplayConfiguration>
configuration()
const override
44 return std::unique_ptr<graphics::DisplayConfiguration>(
61 std::weak_ptr<graphics::Cursor>
the_cursor() {
return {}; }
void register_configuration_change_handler(graphics::EventHandlerRegister &, graphics::DisplayConfigurationChangeHandler const &) override
Registers a handler for display configuration changes.
Definition: null_display.h:49
void for_each_display_buffer(std::function< void(graphics::DisplayBuffer &)> const &)
Definition: null_display.h:37
Interface to an output framebuffer.
Definition: display_buffer.h:39
void resume()
Resumes the display.
Definition: null_display.h:60
void configure(graphics::DisplayConfiguration const &)
Sets a new output configuration.
Definition: null_display.h:48
std::unique_ptr< graphics::DisplayConfiguration > configuration() const override
Gets a copy of the current output configuration.
Definition: null_display.h:42
void register_pause_resume_handlers(graphics::EventHandlerRegister &, graphics::DisplayPauseHandler const &, graphics::DisplayResumeHandler const &) override
Registers handlers for pausing and resuming the display subsystem.
Definition: null_display.h:54
std::weak_ptr< graphics::Cursor > the_cursor()
Gets the hardware cursor object.
Definition: null_display.h:61
Definition: null_display_configuration.h:30
std::function< bool()> DisplayResumeHandler
Definition: display.h:38
Definition: null_gl_context.h:31
std::function< bool()> DisplayPauseHandler
Definition: display.h:35
std::unique_ptr< graphics::GLContext > create_gl_context()
Creates a GLContext object that shares resources with the Display's GL context.
Definition: null_display.h:62
Definition: null_display.h:34
Interface to the display subsystem.
Definition: display.h:44
std::function< void()> DisplayConfigurationChangeHandler
Definition: display.h:39
void pause()
Pauses the display.
Definition: null_display.h:59
Interface to a configuration of display cards and outputs.
Definition: display_configuration.h:159
Definition: event_handler_register.h:31