[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LCLIntf' (#lcl)

InflateRect

Inflates the rectangle in all directions.

Declaration

Source position: winapih.inc line 324

function InflateRect(

  var ARect: TRect;

  dx: Integer;

  dy: Integer

):Boolean;

Arguments

ARect

  

This rectangle is modified.

dx

  

The horizontal increase, negative to decrease.

dy

  

The vertical increase, negative to decrease.

Function result

Always True.

Description

The deltas are applied to every side, i.e. the width and height increase by the double amount.

Positive values inflate, negative values deflate.

The rectangle is clipped so that width and height never can become negative.

This method can be used to add or subtract a border around the rectangle.

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