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).

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)
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-2021 Canonical Ltd.
Generated on Wed Mar 31 14:57:31 UTC 2021
This documentation is licensed under the GPL version 2 or 3.