nw::ut::Rect Structure

Syntax

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

Description

Class representing rectangles.

Member Variables

left f32 Left coordinate of the rectangle.
top f32 Upper coordinate of the rectangle.
right f32 Right coordinate of the rectangle.
bottom f32 Lower coordinate of the rectangle.

Member Functions

Constructors/Destructors
Rect This is the default constructor.
~Rect Destructor.
Set/Get
GetWidth Gets the rectangle's width.
GetHeight Gets the rectangle's height.
GetX Gets the X-coordinate of the rectangle reference point.
GetY Gets the Y-coordinate of the rectangle reference point.
SetWidth Sets the rectangle's width.
SetHeight Sets the rectangle's height.
MoveTo Moves the left coordinate of the rectangle.
Move Moves the rectangle in parallel.
SetOriginAndSize Sets origin and the size.
Other
Normalize Normalizes rectangle information into regular values.

CONFIDENTIAL