Go to the documentation of this file.
20 #ifndef MIR_GEOMETRY_RECTANGLE_H_
21 #define MIR_GEOMETRY_RECTANGLE_H_
84 std::ostream&
operator<<(std::ostream& out, Rectangle
const& value);
bool overlaps(Rectangle const &r) const
constexpr Rectangle()=default
bool contains(Point const &p) const
Rectangle intersection_with(Rectangle const &r) const
X x
Definition: point.h:39
Definition: rectangle.h:33
Size size
Definition: rectangle.h:43
Y top() const
Definition: rectangle.h:70
Y bottom() const
Definition: rectangle.h:71
Point top_left
Definition: rectangle.h:42
constexpr bool operator==(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:52
Definition: splash_session.h:24
constexpr bool operator!=(Displacement const &lhs, Displacement const &rhs)
Definition: displacement.h:57
Y y
Definition: point.h:40
Point bottom_right() const
The bottom right boundary point of the rectangle.
std::ostream & operator<<(std::ostream &out, Displacement const &value)
X right() const
Definition: rectangle.h:69
constexpr Rectangle(Point const &top_left, Size const &size)
Definition: rectangle.h:37
Point bottom_left() const
X left() const
Definition: rectangle.h:68
Copyright © 2012-2020
Canonical Ltd.
Generated on Sat Jul 18 01:32:30 UTC 2020
This documentation is licensed under the GPL version 2 or 3.