Size
Return the size of the rectangle
Declaration
Source position: types.pp line 341
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
Name | Description |
---|---|
CenterPoint | Return the center point of a rectangle |
InflateRect | Increase the rectangle in size, keeping it centered |
IntersectRect | Return the intersection of 2 rectangles |
IsRectEmpty | Check whether a rectangle is empty |
IsRectEmpty | Check whether a rectangle is empty |
OffsetRect | Offset the rectangle |
PtinRect | Check whether a point is inside a rectangle. |