[Overview][Types][Procedures and functions][Index] Reference for unit 'GraphMath' (#lazutils)

SameRect

Indicates whether member in the specified rectangles have the same values.

Declaration

Source position: graphmath.pp line 86

function SameRect(

  R1: PRect;

  R2: PRect

):Boolean;

Arguments

R1

  

Pointer to a TRect instance examined in the routine.

R2

  

Pointer to a TRect instance examined in the routine.

Function result

True when the specified rectangles have the same values in the members.

Description

SameRect is Boolean function used to determine whether the TRect instances R1 and R2 represent the same rectangular areas. It compares the values for the Left, Right, Top, and Bottom members in the TRect instances. The return value is True when members in R1 have the same values as the corresponding members in R2.

SameRect replaces the deprecated CompareRect routine in the lclproc.pas unit in the LCL.

Version info

Added in LazUtils version 3.99.

See also

CompareRect

PRect

TRect


Version 4.0 Generated 2025-05-03 Home