#include <rectangle.h>
◆ Rectangle() [1/2]
constexpr mir::geometry::Rectangle::Rectangle |
( |
| ) |
|
|
default |
◆ Rectangle() [2/2]
constexpr mir::geometry::Rectangle::Rectangle |
( |
Point const & |
top_left, |
|
|
Size const & |
size |
|
) |
| |
|
inline |
◆ bottom()
Y mir::geometry::Rectangle::bottom |
( |
| ) |
const |
|
inline |
◆ bottom_left()
Point mir::geometry::Rectangle::bottom_left |
( |
| ) |
const |
◆ bottom_right()
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).
◆ contains() [1/2]
bool mir::geometry::Rectangle::contains |
( |
Point const & |
p | ) |
const |
◆ contains() [2/2]
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.
◆ intersection_with()
◆ left()
X mir::geometry::Rectangle::left |
( |
| ) |
const |
|
inline |
◆ overlaps()
bool mir::geometry::Rectangle::overlaps |
( |
Rectangle const & |
r | ) |
const |
◆ right()
X mir::geometry::Rectangle::right |
( |
| ) |
const |
|
inline |
◆ top()
Y mir::geometry::Rectangle::top |
( |
| ) |
const |
|
inline |
◆ top_right()
Point mir::geometry::Rectangle::top_right |
( |
| ) |
const |
◆ size
Size mir::geometry::Rectangle::size |
◆ top_left
Point mir::geometry::Rectangle::top_left |
The documentation for this struct was generated from the following file:
Copyright © 2012-2018
Canonical Ltd.
Generated on Wed Jul 25 08:00:43 UTC 2018