19#ifndef MIR_GEOMETRY_RECTANGLES_H_
20#define MIR_GEOMETRY_RECTANGLES_H_
26#include <initializer_list>
38 Rectangles(std::initializer_list<Rectangle>
const& rects);
49 typedef std::vector<Rectangle>::size_type
size_type;
58 std::vector<Rectangle> rectangles;
A collection of rectangles (with possible duplicates).
Definition: rectangles.h:35
void confine(Point &point) const
void remove(Rectangle const &rect)
removes at most one matching rectangle
bool operator==(Rectangles const &rect) const
Rectangles(std::initializer_list< Rectangle > const &rects)
std::vector< Rectangle >::size_type size_type
Definition: rectangles.h:49
void add(Rectangle const &rect)
bool operator!=(Rectangles const &rect) const
std::vector< Rectangle >::const_iterator const_iterator
Definition: rectangles.h:48
const_iterator begin() const
Rectangle bounding_rectangle() const
const_iterator end() const
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Definition: splash_session.h:24
Definition: rectangle.h:34