nw::ut::Rect Structure

Syntax

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

Description

Class representing rectangles.

Member Variables

left Left coordinate of the rectangle.
top Upper coordinate of the rectangle.
right Right coordinate of the rectangle.
bottom 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