|
AeonGUI
A portable video game graphic user interface library.
|
Rectangle class. More...
#include <aeongui/Rect.hpp>
Public Member Functions | |
| Rect (int32_t aX=0, int32_t aY=0, uint32_t aWidth=0, uint32_t aHeight=0) | |
| Position and Dimensions constructor. | |
Getters | |
| int32_t | GetX () const |
| Get X coordinate. | |
| int32_t | GetY () const |
| Get X coordinate. | |
| uint32_t | GetWidth () const |
| Get Width. | |
| uint32_t | GetHeight () const |
| Get Height. | |
Setters | |||||||||
Get rect position.
Get rect Dimensions.
| |||||||||
| void | SetX (int32_t X) | ||||||||
| Set X coordinate. | |||||||||
| void | SetY (int32_t Y) | ||||||||
| Set Y coordinate. | |||||||||
| void | SetWidth (uint32_t width) | ||||||||
| Set Width. | |||||||||
| void | SetHeight (uint32_t height) | ||||||||
| Set Height. | |||||||||
Rectangle class.
| AeonGUI::Rect::Rect | ( | int32_t | aX = 0, |
| int32_t | aY = 0, | ||
| uint32_t | aWidth = 0, | ||
| uint32_t | aHeight = 0 ) |
Position and Dimensions constructor.
| aX | X Position. |
| aY | Y Position. |
| aWidth | Rectangle Width. |
| aHeight | Rectangle Height. |
| uint32_t AeonGUI::Rect::GetHeight | ( | ) | const |
Get Height.
| uint32_t AeonGUI::Rect::GetWidth | ( | ) | const |
Get Width.
| int32_t AeonGUI::Rect::GetX | ( | ) | const |
Get X coordinate.
| int32_t AeonGUI::Rect::GetY | ( | ) | const |
Get X coordinate.
| void AeonGUI::Rect::SetHeight | ( | uint32_t | height | ) |
Set Height.
| height | The new height. |
| void AeonGUI::Rect::SetWidth | ( | uint32_t | width | ) |
Set Width.
| width | The new width. |
| void AeonGUI::Rect::SetX | ( | int32_t | X | ) |
Set X coordinate.
| X | Value to set the X coordinate of the rect to. |
| void AeonGUI::Rect::SetY | ( | int32_t | Y | ) |
Set Y coordinate.
| Y | Value to set the Y coordinate of the rect to. |