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

TRect

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

Describes a rectangular region in a plane.

Declaration

Source position: objects.pp line 237

type TRect = object end;

  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.

Inheritance

TRect

  

Describes a rectangular region in a plane.


Documentation generated on: Mar 17 2017