Enumeration

CGPathElementType

The type of element found in a path.

Declaration

typedef enum CGPathElementType : int32_t {
    ...
} CGPathElementType;

Overview

For more information about paths, see CGPathRef.

Topics

Constants

kCGPathElementMoveToPoint

The path element that starts a new subpath. The element holds a single point for the destination. See the function CGPathMoveToPoint.

kCGPathElementAddLineToPoint

The path element that adds a line from the current point to a new point. The element holds a single point for the destination. See the function CGPathAddLineToPoint.

kCGPathElementAddQuadCurveToPoint

The path element that adds a quadratic curve from the current point to the specified point. The element holds a control point and a destination point. See the function CGPathAddQuadCurveToPoint.

kCGPathElementAddCurveToPoint

The path element that adds a cubic curve from the current point to the specified point. The element holds two control points and a destination point. See the function CGPathAddCurveToPoint.

kCGPathElementCloseSubpath

The path element that closes and completes a subpath. The element does not contain any points. See the function CGPathCloseSubpath.

See Also

Applying a Function to the Elements of a Path

CGPathApply

For each element in a graphics path, calls a custom applier function.

CGPathApplierFunction

Defines a callback function that can view an element in a graphics path.

CGPathElement

A data structure that provides information about a path element.