Sign in Join
FPDoc Onlineexperiment

UnionRect function

In unit Types

Return the union of 2 rectangles.

Declaration

pascal
function UnionRect(var Rect: TRect; const R1: TRect; const R2: TRect)
: Boolean

Description

UnionRect returns the rectangle that encompasses both R1 and R2 in Rect. It returns True if the resulting rectangle is not empty, False if the result is an empty rectangle (in which case the result is filled with zeroes)

See also

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