20 #ifndef MIR_GEOMETRY_RECTANGLE_H_
21 #define MIR_GEOMETRY_RECTANGLE_H_
std::ostream & operator<<(std::ostream &out, Displacement const &value)
constexpr bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:52
constexpr bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:57
Definition: splash_session.h:24
Y y
Definition: point.h:40
X x
Definition: point.h:39
Definition: rectangle.h:34
Size size
Definition: rectangle.h:43
X right() const
Definition: rectangle.h:69
X left() const
Definition: rectangle.h:68
Y bottom() const
Definition: rectangle.h:71
constexpr Rectangle()=default
bool overlaps(Rectangle const &r) const
Point bottom_right() const
The bottom right boundary point of the rectangle.
constexpr Rectangle(Point const &top_left, Size const &size)
Definition: rectangle.h:37
Point top_left
Definition: rectangle.h:42
bool contains(Rectangle const &r) const
Test if the rectangle contains another.
bool contains(Point const &p) const
Point bottom_left() const
Rectangle intersection_with(Rectangle const &r) const
Y top() const
Definition: rectangle.h:70