#include <rectangle.h>
constexpr mir::geometry::Rectangle::Rectangle |
( |
| ) |
|
|
default |
constexpr mir::geometry::Rectangle::Rectangle |
( |
Point const & |
top_left, |
|
|
Size const & |
size |
|
) |
| |
|
inline |
Y mir::geometry::Rectangle::bottom |
( |
| ) |
const |
|
inline |
Point mir::geometry::Rectangle::bottom_left |
( |
| ) |
const |
Point mir::geometry::Rectangle::bottom_right |
( |
| ) |
const |
The bottom right boundary point of the rectangle.
Note that the returned point is not included in the rectangle area, that is, the rectangle is represented as [top_left,bottom_right).
bool mir::geometry::Rectangle::contains |
( |
Point const & |
p | ) |
const |
bool mir::geometry::Rectangle::contains |
( |
Rectangle const & |
r | ) |
const |
Test if the rectangle contains another.
Note that an empty rectangle can still contain other empty rectangles, which are treated as points or lines of thickness zero.
X mir::geometry::Rectangle::left |
( |
| ) |
const |
|
inline |
bool mir::geometry::Rectangle::overlaps |
( |
Rectangle const & |
r | ) |
const |
X mir::geometry::Rectangle::right |
( |
| ) |
const |
|
inline |
Y mir::geometry::Rectangle::top |
( |
| ) |
const |
|
inline |
Point mir::geometry::Rectangle::top_right |
( |
| ) |
const |
Size mir::geometry::Rectangle::size |
Point mir::geometry::Rectangle::top_left |
The documentation for this struct was generated from the following file:
Copyright © 2012-2022
Canonical Ltd.
Generated on Thu Jan 27 21:45:55 UTC 2022
This documentation is licensed under the GPL version 2 or 3.