Go to the documentation of this file.
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
Basic geometry types. Types for dimensions, displacements, etc. and the operations that they support.
Definition dimensions.h:31
std::ostream & operator<<(std::ostream &out, Displacement const &value)
Definition splash_session.h:24
Definition rectangle.h:34
Copyright © 2012-2026
Canonical Ltd.
Generated on Mon Mar 16 14:59:04 UTC 2026
This documentation is licensed under the GPL version 2 or 3.