Checks to see whether the specified point is contained in the current path.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The point to check, specified in user space units.
A path drawing mode. See
point is inside the current path of the graphics context;
A point is contained within the path of a graphics context if the point is inside the painted region when the path is stroked or filled with opaque colors using the specified path drawing mode. A point can be inside a path only if the path is explicitly closed by calling the function
close for paths drawn directly to the current context, or
close for paths first created as
CGPath objects and then drawn to the current context.