Function

CGPathGetCurrentPoint

Returns the current point in a graphics path.

Declaration

CGPoint CGPathGetCurrentPoint(CGPathRef path);

Parameters

path

The path to evaluate.

Return Value

The current point in the specified path.

Discussion

If the path is empty—that is, if it has no elements—this function returns CGPointZero (see CGGeometry). To determine whether a path is empty, use CGPathIsEmpty.

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.

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.