SameRect function
Indicates whether member in the specified rectangles have the same values.
Declaration
function SameRect(R1: PRect; R2: PRect): BooleanArguments
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 (and removed) CompareRect routine in the
lclproc.pas unit in the LCL.
Added in LazUtils version 3.99.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
