Function

CGPathIsRect

Indicates whether or not a graphics path represents a rectangle.

Declaration

bool CGPathIsRect(CGPathRef path, CGRect *rect);

Parameters

path

The path to evaluate.

rect

On input, a pointer to an uninitialized rectangle. If the specified path represents a rectangle, on return contains a copy of the rectangle.

Return Value

A Boolean value that indicates whether the specified path represents a rectangle. If the path represents a rectangle, returns YES.

See Also

Getting Information about Core Graphics Paths

CGPathEqualToPath

Indicates whether two graphics paths are equivalent.

CGPathGetBoundingBox

Returns the bounding box containing all points in a graphics path.

CGPathGetPathBoundingBox

Returns the bounding box of a graphics path.

CGPathGetCurrentPoint

Returns the current point in a graphics path.

CGPathGetTypeID

Returns the Core Foundation type identifier for Core Graphics paths.

CGPathIsEmpty

Indicates whether or not a graphics path is empty.

CGPathContainsPoint

Checks whether a point is contained in a graphics path.