Rectangle type.
More...
#include <peak_ipl/types/peak_ipl_rect.hpp>
◆ Rect2D() [1/2]
| constexpr peak::ipl::Rect2D::Rect2D |
( |
size_t |
x, |
|
|
size_t |
y, |
|
|
size_t |
width, |
|
|
size_t |
height |
|
) |
| |
|
inlineconstexpr |
◆ Rect2D() [2/2]
| constexpr peak::ipl::Rect2D::Rect2D |
( |
const Point2D & |
point, |
|
|
const Size2D & |
size |
|
) |
| |
|
inlineconstexpr |
◆ bottom()
| constexpr size_t peak::ipl::Rect2D::bottom |
( |
| ) |
const |
|
inlineconstexpr |
Returns the bottom position of the rectangle
◆ left()
| constexpr size_t peak::ipl::Rect2D::left |
( |
| ) |
const |
|
inlineconstexpr |
Returns the left position of the rectangle
◆ right()
| constexpr size_t peak::ipl::Rect2D::right |
( |
| ) |
const |
|
inlineconstexpr |
Returns the right position of the rectangle
◆ setHeight()
| void peak::ipl::Rect2D::setHeight |
( |
size_t |
height | ) |
|
|
inline |
Sets the rectangle height
◆ setSize()
| void peak::ipl::Rect2D::setSize |
( |
const Size2D & |
size | ) |
|
|
inline |
Sets a new size for the rectangle
◆ setWidth()
| void peak::ipl::Rect2D::setWidth |
( |
size_t |
width | ) |
|
|
inline |
◆ setX()
| void peak::ipl::Rect2D::setX |
( |
size_t |
x | ) |
|
|
inline |
Sets the left position of the rectangle
◆ setY()
| void peak::ipl::Rect2D::setY |
( |
size_t |
y | ) |
|
|
inline |
Sets the top position of the rectangle
◆ size()
| constexpr Size2D peak::ipl::Rect2D::size |
( |
| ) |
const |
|
inlineconstexpr |
Returns the size of the rectancle
◆ top()
| constexpr size_t peak::ipl::Rect2D::top |
( |
| ) |
const |
|
inlineconstexpr |
Returns the top position of the rectangle
◆ topLeft()
| constexpr Point2D peak::ipl::Rect2D::topLeft |
( |
| ) |
const |
|
inlineconstexpr |
Returns the position of the top-left corner of the rectangle
The documentation for this class was generated from the following file: