nn::util::Rect Structurestruct Rect
{
f32 left;
f32 top;
f32 right;
f32 bottom;
};
Class for representing a rectangle.
| left | The rectangle's left coordinate. | |
|---|---|---|
| top | The rectangle's top coordinate. | |
| right | The rectangle's right coordinate. | |
| bottom | The rectangle's bottom coordinate. |
| Constructors/Destructors | ||
|---|---|---|
Rect
|
This is the default constructor. | |
~Rect
|
Destructor. | |
| Getting and Setting Values | ||
GetWidth
|
Gets the rectangle's width. | |
GetHeight
|
Gets the rectangle's height. | |
GetX
|
Gets the x-coordinate of the rectangle's origin. | |
GetY
|
Gets the y-coordinate of the rectangle's origin. | |
SetWidth
|
Sets the rectangle's width. | |
SetHeight
|
Sets the rectangle's height. | |
MoveTo
|
Moves the rectangle's upper-left coordinates. | |
Move
|
Moves (translates) a rectangle. | |
SetOriginAndSize
|
Sets the origin and size. | |
| Other | ||
Normalize
|
Normalizes rectangle values. | |
CONFIDENTIAL