Mir
Public Types | Public Member Functions | List of all members
mir::geometry::Rectangles Class Reference

A collection of rectangles (with possible duplicates). More...

#include <rectangles.h>

Public Types

typedef std::vector< Rectangle >::const_iterator const_iterator
 
typedef std::vector< Rectangle >::size_type size_type
 

Public Member Functions

 Rectangles ()
 
 Rectangles (std::initializer_list< Rectangle > const &rects)
 
void add (Rectangle const &rect)
 
void remove (Rectangle const &rect)
 removes at most one matching rectangle More...
 
void clear ()
 
Rectangle bounding_rectangle () const
 
void confine (Point &point) const
 
const_iterator begin () const
 
const_iterator end () const
 
size_type size () const
 
bool operator== (Rectangles const &rect) const
 
bool operator!= (Rectangles const &rect) const
 

Detailed Description

A collection of rectangles (with possible duplicates).

Examples:
render_surfaces.cpp, server_example_canonical_window_manager.cpp, and server_example_window_management.cpp.

Member Typedef Documentation

Constructor & Destructor Documentation

mir::geometry::Rectangles::Rectangles ( )
mir::geometry::Rectangles::Rectangles ( std::initializer_list< Rectangle > const &  rects)

Member Function Documentation

void mir::geometry::Rectangles::add ( geom::Rectangle const &  rect)
Examples:
render_surfaces.cpp.
geom::Rectangles::const_iterator mir::geometry::Rectangles::begin ( ) const
geom::Rectangle mir::geometry::Rectangles::bounding_rectangle ( ) const
void mir::geometry::Rectangles::clear ( )
void mir::geometry::Rectangles::confine ( geom::Point point) const
geom::Rectangles::const_iterator mir::geometry::Rectangles::end ( ) const
bool mir::geometry::Rectangles::operator!= ( Rectangles const &  rect) const
bool mir::geometry::Rectangles::operator== ( Rectangles const &  rect) const
void mir::geometry::Rectangles::remove ( Rectangle const &  rect)

removes at most one matching rectangle

geom::Rectangles::size_type mir::geometry::Rectangles::size ( ) const

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