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 |
|
) |
| |
|
inline |
◆ Rect2D() [2/2]
| constexpr peak::ipl::Rect2D::Rect2D |
( |
const Point2D & |
point, |
|
|
const Size2D & |
size |
|
) |
| |
|
inline |
◆ bottom()
Returns the bottom position of the rectangle
◆ left()
Returns the left position of the rectangle
◆ right()
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()
Returns the size of the rectancle
◆ top()
Returns the top position of the rectangle
◆ topLeft()
Returns the position of the top-left corner of the rectangle
The documentation for this class was generated from the following file: