author: Tomasz Biela (Tebe)
https://www.freepascal.org/docs-html/rtl/types/index-5.html
name: | description: |
---|---|
Point | function Point(AX, AY: smallint): TPoint;Create a point
parameters:returns: |
Rect | function Rect(ALeft, ATop, ARight, ABottom: smallint): TRect;Create a rectangle record
parameters:returns: |
Bounds | function Bounds(ALeft, ATop, AWidth, AHeight: smallint): TRect;Create a rectangle, given a position and size
parameters:returns: |
EqualRect | function EqualRect(const r1,r2 : TRect) : Boolean;Check if two rectangles are equal
parameters:returns: |
PointsEqual | function PointsEqual(const P1, P2: TPoint): Boolean;Check if two points are equal
parameters:returns: |
RectWidth | function RectWidth(const Rect: TRect): word; |
RectHeight | function RectHeight(const Rect: TRect): word; |
PtInEllipse | function PtInEllipse(const Rect: TRect; const p : TPoint): Boolean;Check whether a point is inside a ellipse
parameters:returns: |
PtInRect | function PtInRect(const Rect : TRect;const p : TPoint) : Boolean;Check whether a point is inside a rectangle
parameters:returns: |
Avg | function Avg(a, b: integer): integer; |
CenterPoint | function CenterPoint(const Rect: TRect): TPoint;Return the center point of a rectangle
parameters:returns: |
IsRectEmpty | function IsRectEmpty(const Rect : TRect) : Boolean;Check whether a rectangle is empty
parameters:returns: |
IntersectRect | function IntersectRect(var Rect : TRect;const R1,R2 : TRect) : Boolean;Return the intersection of 2 rectangles
parameters:returns: |
UnionRect | function UnionRect(var Rect : TRect;const R1,R2 : TRect) : Boolean;Return the union of 2 rectangles
parameters:returns: |
OffsetRect | function OffsetRect(var Rect : TRect; DX, DY : Smallint) : Boolean;Offset the rectangle
parameters:returns: |
InflateRect | function InflateRect(var Rect: TRect; dx, dy: smallint): Boolean;Increase the rectangle in size, keeping it centered
parameters:returns: |
NormalizeRect | procedure NormalizeRect(var Rect: TRect); overload; |
NormalizeRect | procedure NormalizeRect(var left,top, right,bottom : smallint); overload; |
Size | function Size(AWidth, AHeight: smallint): TSize; overload;Return the size of the rectangle
parameters:returns: |
Size | function Size(const ARect: TRect): TSize; overload;Return the size of the rectangle
parameters:returns: |