Sign in Join
FPDoc Onlineexperiment

Bounds function

In unit Classes

Returns a TRect structure with the bounding rect of the given location and size.

Declaration

pascal
function Bounds(ALeft: Integer; ATop: Integer; AWidth: Integer; 
 AHeight: Integer): TRect

Description

Bounds returns a TRect record with the given origin (ALeft,ATop) and dimensions (AWidth,AHeight) filled in. The bottom-right corner is calculated by adding AWidth to ALeft and AHeight to ATop. As a result, a rectangle with width/height set to 0 is exactly 1 pixel.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.