Unit 'Types' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#rtl]

UnionRect

Return the union of 2 rectangles.

Declaration

Source position: types.pp line 538

function UnionRect(

  var Rect: TRect;

  const R1: TRect;

  const R2: TRect

):Boolean;

function UnionRect(

  var Rect: TRectF;

  const R1: TRectF;

  const R2: TRectF

):Boolean;

function UnionRect(

  const R1: TRect;

  const R2: TRect

):TRect;

function UnionRect(

  const R1: TRectF;

  const R2: TRectF

):TRectF;

Description

UnionRect retuns 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

PtinRect

  

Check whether a point is inside a rectangle.

IntersectRect

  

Return the intersection of 2 rectangles.

IsRectEmpty

  

Check whether a rectangle is empty.

OffsetRect

  

Offset the rectangle.

InflateRect

  

Increase the rectangle in size, keeping it centered.

Size

  

Return the size of the rectangle.


Documentation generated on: Nov 23 2024