Sign in Join
FPDoc Onlineexperiment

InflateRect function

In unit Types

Increase the rectangle in size, keeping it centered.

Declaration

pascal
function InflateRect(var Rect: TRect; dx: Integer; dy: Integer)
: Boolean

Description

InflateRect inflates the rectangle horizontally with dx pixels on each side, and vertically with dy pixels, thus keeping its center point on the same location. It returns true if the operation was successfully, False if it was not (only possible if the address of Rect is Nil).

See also

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