Skip to content

TRect

Describes a rectangular region in a plane.

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;

Inheritance

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.

Fieldss

Member Visibility Description
A default Top left corner of rectangle.
B default Bottom right corner of rectangle.