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

CenterPoint

Return the center point of a rectangle

Declaration

Source position: types.pp line 294

function CenterPoint(

  const Rect: TRect

):TPoint;

Description

CenterPoint returns the center point of the rectangle Rect.

See also

PtinRect

  

Check whether a point is inside a rectangle.

IntersectRect

  

Return the intersection of 2 rectangles

IsRectEmpty

  

Check whether a rectangle is empty

OffsetRect

  

Offset the rectangle

InflateRect

  

Increase the rectangle in size, keeping it centered

Size

  

Return the size of the rectangle

IsRectEmpty

  

Check whether a rectangle is empty

The latest version of this document can be found at lazarus-ccr.sourceforge.net.