IDS peak IPL v1.17.1
Loading...
Searching...
No Matches
peak::ipl::Rect2D Class Reference

Rectangle type. More...

#include <peak_ipl/types/peak_ipl_rect.hpp>

Public Member Functions

constexpr Rect2D (size_t x, size_t y, size_t width, size_t height)
constexpr Rect2D (const Point2D &point, const Size2D &size)
constexpr Point2D topLeft () const
constexpr Size2D size () const
constexpr size_t left () const
constexpr size_t right () const
constexpr size_t top () const
constexpr size_t bottom () const
constexpr void setSize (const Size2D &size)
constexpr void setWidth (size_t width)
constexpr void setHeight (size_t height)
constexpr void setX (size_t x)
constexpr void setY (size_t y)

Detailed Description

Rectangle type.

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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)
inlineconstexpr

Sets the rectangle height

◆ setSize()

void peak::ipl::Rect2D::setSize ( const Size2D & size)
inlineconstexpr

Sets a new size for the rectangle

◆ setWidth()

void peak::ipl::Rect2D::setWidth ( size_t width)
inlineconstexpr

Sets the rectangle width

◆ setX()

void peak::ipl::Rect2D::setX ( size_t x)
inlineconstexpr

Sets the left position of the rectangle

◆ setY()

void peak::ipl::Rect2D::setY ( size_t y)
inlineconstexpr

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: