RectEmpty

int RectEmpty (Rect rect);

Purpose

Returns 1 if the rectangle you specify is empty. The function returns 0 otherwise.

A rectangle is considered empty if either its height or width is less than or equal to zero.

Parameters

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

Return Value

Name Type Description
empty integer Indicates if the specified rectangle is empty.

Code Description
1 Either rect.height or rect.width is less than or equal to zero.
0 Both rect.height and rect.width are greater than zero.