Rectangle type.
More...
#include <peak_ipl/types/peak_ipl_rect.hpp>
◆ Rect2D() [1/2]
| peak::ipl::Rect2D::Rect2D |
( |
size_t | x, |
|
|
size_t | y, |
|
|
size_t | width, |
|
|
size_t | height ) |
|
inlineconstexpr |
◆ Rect2D() [2/2]
| peak::ipl::Rect2D::Rect2D |
( |
const Point2D & | point, |
|
|
const Size2D & | size ) |
|
inlineconstexpr |
◆ bottom()
| size_t peak::ipl::Rect2D::bottom |
( |
| ) |
const |
|
inlineconstexpr |
Returns the bottom position of the rectangle
◆ left()
| size_t peak::ipl::Rect2D::left |
( |
| ) |
const |
|
inlineconstexpr |
Returns the left position of the rectangle
◆ right()
| 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()
| Size2D peak::ipl::Rect2D::size |
( |
| ) |
const |
|
inlineconstexpr |
Returns the size of the rectancle
◆ top()
| size_t peak::ipl::Rect2D::top |
( |
| ) |
const |
|
inlineconstexpr |
Returns the top position of the rectangle
◆ topLeft()
| 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: