RectEqual

int RectEqual (Rect rect1, Rect rect2);

Purpose

Returns 1 if the top, left, height, and width of the two rectangles you specify are identical. Returns 0 otherwise.

Parameters

Input
Name Type Description
rect1 Rect The location and size of a rectangle.
rect2 Rect The location and size of a rectangle.

Return Value

Name Type Description
equal integer Indicates if the top, left, height, and width values in rect1 are identical to those of rect2.

Code Description
1 rect1 and rect2 have the identical top, left, height, and width values.
0 rect1 and rect2 do not have the identical top, left, height, and width values.