17 #ifndef MIR_GEOMETRY_RECTANGLES_H_
18 #define MIR_GEOMETRY_RECTANGLES_H_
24 #include <initializer_list>
36 Rectangles(std::initializer_list<Rectangle>
const& rects);
47 typedef std::vector<Rectangle>::size_type
size_type;
56 std::vector<Rectangle> rectangles;
A collection of rectangles (with possible duplicates).
Definition: rectangles.h:33
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:47
void add(Rectangle const &rect)
bool operator!=(Rectangles const &rect) const
std::vector< Rectangle >::const_iterator const_iterator
Definition: rectangles.h:46
const_iterator begin() const
Rectangle bounding_rectangle() const
const_iterator end() const
std::ostream & operator<<(std::ostream &out, Rectangles const &value)
Definition: splash_session.h:22
Definition: rectangle.h:31