Mir
Public Member Functions | List of all members
mir::shell::GraphicsDisplayLayout Class Reference

#include <graphics_display_layout.h>

Inheritance diagram for mir::shell::GraphicsDisplayLayout:
[legend]

Public Member Functions

 GraphicsDisplayLayout (std::shared_ptr< graphics::Display > const &display)
 
void clip_to_output (geometry::Rectangle &rect) override
 Clips a rectangle to the output it is in. More...
 
void size_to_output (geometry::Rectangle &rect) override
 Makes a rectangle take up the whole area of the output it is in. More...
 
bool place_in_output (graphics::DisplayConfigurationOutputId output_id, geometry::Rectangle &rect) override
 Places a rectangle in an particular output if the display is known, otherwise does nothing. More...
 
- Public Member Functions inherited from mir::shell::DisplayLayout
virtual ~DisplayLayout ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from mir::shell::DisplayLayout
 DisplayLayout ()=default
 
 DisplayLayout (DisplayLayout const &)=delete
 
DisplayLayoutoperator= (DisplayLayout const &)=delete
 

Constructor & Destructor Documentation

mir::shell::GraphicsDisplayLayout::GraphicsDisplayLayout ( std::shared_ptr< graphics::Display > const &  display)

Member Function Documentation

void mir::shell::GraphicsDisplayLayout::clip_to_output ( geometry::Rectangle rect)
overridevirtual

Clips a rectangle to the output it is in.

Parameters
[in,out]rectthe rectangle to clip

Implements mir::shell::DisplayLayout.

bool mir::shell::GraphicsDisplayLayout::place_in_output ( graphics::DisplayConfigurationOutputId  id,
geometry::Rectangle rect 
)
overridevirtual

Places a rectangle in an particular output if the display is known, otherwise does nothing.

Parameters
[in]idthe id of the output to place the rectangle in
[in,out]rectthe rectangle to place
Returns
true iff the display id is recognised

Implements mir::shell::DisplayLayout.

void mir::shell::GraphicsDisplayLayout::size_to_output ( geometry::Rectangle rect)
overridevirtual

Makes a rectangle take up the whole area of the output it is in.

Parameters
[in,out]rectthe rectangle to make fullscreen

Implements mir::shell::DisplayLayout.


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

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016