[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Objects' (#rtl)


[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Describes a rectangular region in a plane.


Source position: objects.pp line 237

type TRect = object

  A: TPoint;


Top left corner of rectangle

  B: TPoint;


Bottom right corner of rectangle

  function Empty;


Is the surface of the rectangle zero

  function Equals();


Do the corners of the rectangles match

  function Contains();


Determine if a point is inside the rectangle

  procedure Copy();


Copy cornerpoints from another rectangle.

  procedure Union();


Enlarges rectangle to encompas another rectangle.

  procedure Intersect();


Reduce rectangle to intersection with another rectangle

  procedure Move();


Move rectangle along a vector.

  procedure Grow();


Expand rectangle with certain size.

  procedure Assign();


Set rectangle corners.





Describes a rectangular region in a plane.

Documentation generated on: Sep 28 2017