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)
 Clips a rectangle to the output it is in. More...
 
void size_to_output (geometry::Rectangle &rect)
 Makes a rectangle take up the whole area of the output it is in. More...
 
void place_in_output (graphics::DisplayConfigurationOutputId output_id, geometry::Rectangle &rect)
 Places a rectangle in an particular output. 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)
virtual

Clips a rectangle to the output it is in.

Parameters
[in,out]rectthe rectangle to clip

Implements mir::shell::DisplayLayout.

void mir::shell::GraphicsDisplayLayout::place_in_output ( graphics::DisplayConfigurationOutputId  id,
geometry::Rectangle rect 
)
virtual

Places a rectangle in an particular output.

Parameters
[in]idthe id of the output to place the rectangle in
[in,out]rectthe rectangle to place

Implements mir::shell::DisplayLayout.

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

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,2013 Canonical Ltd.
Generated on Tue Mar 24 16:15:19 UTC 2015