Overloaded == operator. Checks if the dimensions of the supplied rect are the same as this rect.

Parameters:

rect

The rect to compare with this.

Returns:

True if the dimensions are equal; false if not.

void WoopsiUI::Rect::setHeight

(

s32

height

)

[inline]

Set the rect's height.

Parameters:

height

The new height.

void WoopsiUI::Rect::setWidth

(

s32

width

)

[inline]

Set the rect's width.

Parameters:

width

The new width.

void WoopsiUI::Rect::setX

(

s16

x

)

[inline]

Set the rect's x co-ordinate.

Parameters:

x

The new x co-ordinate.

void WoopsiUI::Rect::setX2

(

s16

x2

)

Set the x co-ordinate of the rect's bottom-right corner. If x2 is less than the rect's current x co-ordinate the method automatically adjusts the co-ords so that the rect's width is never negative. Changing this property will change the width of the rect.

Parameters:

x2

The x co-ordinate of the rect's bottom-right corner.

void WoopsiUI::Rect::setY

(

s16

y

)

[inline]

Set the rect's y co-ordinate.

Parameters:

y

The new y co-ordinate.

void WoopsiUI::Rect::setY2

(

s16

y2

)

Set the y co-ordinate of the rect's bottom-right corner. If y2 is less than the rect's current y co-ordinate the method automatically adjusts the co-ords so that the rect's height is never negative. Changing this property will change the height of the rect.

Determines if the supplied rect intersects this and, if so, divides the supplied rect into the intersected region (stored in "intersection") and the rectangular regions that do not intersect (stored in "remainderRects").