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

Size

Return the size of the rectangle

Declaration

Source position: line 0

function Size(

  AWidth: Integer;

  AHeight: Integer

):TSize;

function Size(

  ARect: TRect

):TSize;

Description

Size returns a TSize record with the indicated AWidth, AHeight. In the case ARect is passed, the width and height are calculated (taking into account that the right, bottom are not considered part of the rectangle).

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

CenterPoint

  

Return the center point of a rectangle

IsRectEmpty

  

Check whether a rectangle is empty

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