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

Size

Return the size of the rectangle

Declaration

Source position: types.pp line 298

function Size(

  AWidth: Integer;

  AHeight: Integer

):TSize;

function Size(

  const 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


Documentation generated on: Nov 14 2015