Function

CGRectIsNull

Returns whether the rectangle is equal to the null rectangle.

Declaration

bool CGRectIsNull(CGRect rect);

Parameters

rect

The rectangle to examine.

Return Value

YES if the specified rectangle is null; otherwise, NO.

Discussion

A null rectangle is the equivalent of an empty set. For example, the result of intersecting two disjoint rectangles is a null rectangle. A null rectangle cannot be drawn and interacts with other rectangles in special ways.

See Also

Checking Rectangle Characteristics

CGRectIsEmpty

Returns whether a rectangle has zero width or height, or is a null rectangle.

CGRectIsInfinite

Returns whether a rectangle is infinite.