EqualRect¶
Check if two rectangles are equal.
Declaration¶
Source position: types.pp line 533
function EqualRect(const r1: TRect; const r2: TRect) : Boolean;
function EqualRect(const r1: TRectF; const r2: TRectF) : Boolean;
Description¶
EqualRect returns True if the rectangles R1 and R2 are equal (i.e. have the position and size). If the rectangles differ, the function returns False
See also¶
| Name | Description |
|---|---|
| Rect | Create a rectangle record. |
| Bounds | Create a rectangle, given a position and size. |
| PtInRect | Check whether a point is inside a rectangle. |
| IntersectRect | Return the intersection of 2 rectangles. |
| UnionRect | Return the union 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. |