TRect
[Properties (by Name)][Methods (by Name)][Events (by Name)]
Describes a rectangular region in a plane.
Declaration
Source position: objects.pp line 268
Type
TRect = object
A : TPoint;
B : TPoint;
function Empty : Boolean;
function Equals(R: TRect) : Boolean;
function Contains(P: TPoint) : Boolean;
procedure Copy(R: TRect);
procedure Union(R: TRect);
procedure Intersect(R: TRect);
procedure Move(ADX: Sw_Integer; ADY: Sw_Integer);
procedure Grow(ADX: Sw_Integer; ADY: Sw_Integer);
procedure Assign(XA: Sw_Integer; YA: Sw_Integer; XB: Sw_Integer;
YB: Sw_Integer);
end
;
Members
| Member | Type | Visibility | Description |
|---|---|---|---|
| A | Field | default | Top left corner of rectangle |
| Assign | Method | default | Set rectangle corners. |
| B | Field | default | Bottom right corner of rectangle |
| Contains | Method | default | Determine if a point is inside the rectangle |
| Copy | Method | default | Copy cornerpoints from another rectangle. |
| Empty | Method | default | Is the surface of the rectangle zero |
| Equals | Method | default | Do the corners of the rectangles match |
| Grow | Method | default | Expand rectangle with certain size. |
| Intersect | Method | default | Reduce rectangle to intersection with another rectangle |
| Move | Method | default | Move rectangle along a vector. |
| Union | Method | default | Enlarges rectangle to encompass another rectangle. |
Inheritance
| Class | Description |
|---|---|
| TRect | Describes a rectangular region in a plane. |