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

#include <stub_display_builder.h>

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

Public Member Functions

 StubConfigurableDisplayBuffer (geometry::Rectangle rect)
 
geometry::Rectangle view_area () const
 The area the DisplayBuffer occupies in the virtual screen space. More...
 
void make_current ()
 Makes the DisplayBuffer the current GL rendering target. More...
 
void release_current ()
 Releases the current GL rendering target. More...
 
void post_update ()
 This will trigger OpenGL rendering and post the result to the screen. More...
 
bool can_bypass () const override
 to be deprecated More...
 
void render_and_post_update (graphics::RenderableList const &, std::function< void(graphics::Renderable const &)> const &)
 
MirOrientation orientation () const override
 Returns the orientation of the display buffer relative to how the user should see it (the orientation of the output). More...
 
void configure (graphics::DisplayConfigurationOutput const &)
 
graphics::DisplayConfigurationOutput configuration () const
 

Constructor & Destructor Documentation

mir::test::doubles::StubConfigurableDisplayBuffer::StubConfigurableDisplayBuffer ( geometry::Rectangle  rect)
inline

Member Function Documentation

bool mir::test::doubles::StubConfigurableDisplayBuffer::can_bypass ( ) const
inlineoverridevirtual

to be deprecated

Implements mir::graphics::DisplayBuffer.

graphics::DisplayConfigurationOutput mir::test::doubles::StubConfigurableDisplayBuffer::configuration ( ) const
inline
void mir::test::doubles::StubConfigurableDisplayBuffer::configure ( graphics::DisplayConfigurationOutput const &  )
inline
void mir::test::doubles::StubConfigurableDisplayBuffer::make_current ( )
inlinevirtual

Makes the DisplayBuffer the current GL rendering target.

Implements mir::graphics::DisplayBuffer.

MirOrientation mir::test::doubles::StubConfigurableDisplayBuffer::orientation ( ) const
inlineoverridevirtual

Returns the orientation of the display buffer relative to how the user should see it (the orientation of the output).

This tells us how much (if any) rotation the renderer needs to do. If your DisplayBuffer can do the rotation itself then this will always return mir_orientation_normal. If the DisplayBuffer does not implement the rotation itself then this function will return the amount of rotation the renderer must do to make things "look right".

Implements mir::graphics::DisplayBuffer.

void mir::test::doubles::StubConfigurableDisplayBuffer::post_update ( )
inlinevirtual

This will trigger OpenGL rendering and post the result to the screen.

Implements mir::graphics::DisplayBuffer.

void mir::test::doubles::StubConfigurableDisplayBuffer::release_current ( )
inlinevirtual

Releases the current GL rendering target.

Implements mir::graphics::DisplayBuffer.

void mir::test::doubles::StubConfigurableDisplayBuffer::render_and_post_update ( graphics::RenderableList const &  ,
std::function< void(graphics::Renderable const &)> const &   
)
inline
geometry::Rectangle mir::test::doubles::StubConfigurableDisplayBuffer::view_area ( ) const
inlinevirtual

The area the DisplayBuffer occupies in the virtual screen space.

Implements mir::graphics::DisplayBuffer.


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

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014