The DlxRect defines a rectangle by the coordinates of its lower-left and upper-right corners.
Inheritance Hierarchy
Object
DlxRect
Properties
Name |
Description |
left |
Specifies the x-coordinate of the lower-left corner of the rectangle. |
bottom |
Specifies the y-coordinate of the lower-left corner of the rectangle. |
right |
Specifies the x-coordinate of the upper-right corner of the rectangle. |
top |
Specifies the y-coordinate of the upper-right corner of the rectangle. |
Constructors
Name |
Description |
DlxRect |
Constructs a DxlRect object. |
Methods
Name |
Description |
BottomLeft |
Returns the bottom-left point of rectangle. |
BottomRight |
Returns the bottom-right point of rectangle. |
CenterPoint |
Returns the centerpoint of rectangle. |
CopyRect |
Copies the dimensions of a source rectangle. |
Deflate |
Decreases the width and height of rectangle. |
Height |
Calculates the height of rectangle. |
Inflate |
Increases the width and height of rectangle. |
Intersect |
Sets DlxRect equal to the intersection of two rectangles. |
IsRectEmpty |
Determines whether DlxRect is empty. DlxRect is empty if the width and/or height are 0. |
IsRectNull |
Determines whether the top, bottom, left, and right member variables are all equal to 0. |
Normalize |
Standardizes the height and width of DlxRect. |
Offset |
Moves DlxRect by the specified offsets. |
SetCentered |
Sets the dimensions of DlxRect. |
SetRect |
Sets the dimensions of DlxRect. |
SetRectEmpty |
Sets DlxRect to an empty rectangle (all coordinates equal to 0). |
TopLeft |
Returns the top-left point of rectangle. |
TopRight |
Returns the top-right point of rectangle. |
Union |
Sets DlxRect equal to the union of two rectangles. |
Width |
Calculates the width of rectangle. |
See also