nn::util::Rect Structure

Syntax

struct Rect
{
   f32 left;
   f32 top;
   f32 right;
   f32 bottom;
};

Description

Class for representing a rectangle.

Member Variables

left The rectangle's left coordinate.
top The rectangle's top coordinate.
right The rectangle's right coordinate.
bottom The rectangle's bottom coordinate.

Member Functions

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.

Revision History

2010/08/23
Initial version.

CONFIDENTIAL