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 ( Rectangle const &  rect)
Examples:
render_surfaces.cpp.
const_iterator mir::geometry::Rectangles::begin ( ) const
Rectangle mir::geometry::Rectangles::bounding_rectangle ( ) const
void mir::geometry::Rectangles::clear ( )
void mir::geometry::Rectangles::confine ( Point point) const
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

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

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

Copyright © 2012-2016 Canonical Ltd.
Generated on Wed Oct 11 22:26:23 UTC 2017