Declaration¶
Source position: objects.pp line 270
type
TRect = object
A: type
TPoint = object
X: Sw_Integer = LongInt;
Y: Sw_Integer = LongInt;
end;
var
B: type
TPoint = object
X: Sw_Integer = LongInt;
Y: Sw_Integer = LongInt;
end;
function Empty : Boolean;
function Equals : Boolean;
function Contains : Boolean;
procedure Copy;
procedure Union;
procedure Intersect;
procedure Move;
procedure Grow;
procedure Assign;
end;
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Assign | default | Set rectangle corners. |
| Contains | default | Determine if a point is inside the rectangle. |
| Copy | default | Copy cornerpoints from another rectangle. |
| Empty | default | Is the surface of the rectangle zero. |
| Equals | default | Do the corners of the rectangles match. |
| Grow | default | Expand rectangle with certain size. |
| Intersect | default | Reduce rectangle to intersection with another rectangle. |
| Move | default | Move rectangle along a vector. |
| Union | default | Enlarges rectangle to encompass another rectangle. |