Function

CGContextGetPathCurrentPoint

Returns the current point in a non-empty path.

Declaration

CGPoint CGContextGetPathCurrentPoint(CGContextRef c);

Parameters

c

The graphics context containing the path to examine.

Return Value

The location, in user space, of the current point in the context’s path. If there is no path, the function returns CGPointZero.

See Also

Getting Information About Paths

CGContextIsPathEmpty

Indicates whether the current path contains any subpaths.

CGContextGetPathBoundingBox

Returns the smallest rectangle that contains the current path.

CGContextPathContainsPoint

Checks to see whether the specified point is contained in the current 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