Function

CGPathEqualToPath

Indicates whether two graphics paths are equivalent.

Declaration

bool CGPathEqualToPath(CGPathRef path1, CGPathRef path2);

Parameters

path1

The first path being compared.

path2

The second path being compared.

Return Value

A Boolean value that indicates whether or not the two specified paths contain the same sequence of path elements. If the paths are not the same, returns NO.

See Also

Getting Information about Core Graphics Paths

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.

CGPathIsRect

Indicates whether or not a graphics path represents a rectangle.

CGPathContainsPoint

Checks whether a point is contained in a graphics path.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software