API Collection
GSLayer Drawing
Create render representations and emit layer contents to pens.
Overview
The Bézier path properties are derived representations for drawing and inspection. Modifying them does not modify the layer’s shapes.
Pen drawing emits outline commands to an object conforming to GSPenProtocol. Use a separate open pen when open paths must be collected independently.
Draw stacks additionally preserve paint, masks, strokes, transforms, and composition structure according to the features supported by their consumer.
Call prepareDrawing()prepareDrawingprepareDrawing and finishDrawing()finishDrawingfinishDrawing around direct drawing of the layer’s shape hierarchy when path component hints must be applied. Bézier path generation manages this preparation as needed.
Topics
Bezier Paths
A cached representation of the layer’s closed path shapes.
A cached representation of the layer’s open path shapes.
A cached representation of the selected outline segments.
A representation of the closed paths and component outlines.
Creates a representation of the closed paths and component outlines while tracking component recursion.
A representation of the open paths in the layer and its components.
Returns the cached representation of open paths without updating it.
Drawing State
Auxiliary outlines generated by the most recent full Bézier path preparation.
Interactive handles generated by the most recent full Bézier path preparation.
The shape attributes applied to newly drawn shapes.
Sets or removes an attribute applied to newly drawn shapes.
Adds shape attributes applied to newly drawn shapes.
Prepares path component hints for direct pen drawing.
Finishes direct pen drawing prepared by prepareDrawing()prepareDrawingprepareDrawing.
Draw Stack
The painted drawing operations for the complete layer.
Creates painted drawing operations for a shape group.
Pen Drawing
Emits the layer to a pen.
Emits the layer to separate pens for closed and open paths.
Emits the layer’s shapes without layer-level paint processing.
Emits the layer without full-color paint processing.
Emits the painted drawing operations of a full-color layer to a pen.
Emits the path and error operations of a draw stack to a pen.
See Also
The different roles that a layer can serve.
The paths and components that form the outline of a layer.
Bounding rectangles of outlines, selections, and metrics.
Side bearings, baseline offsets, layer box, and metrics keys.
Setting for rounding coordinates on a layer.
Background content and reference images associated with a layer.
Named attachment points on a layer.
Manual and generated hint data on a layer.
Layer-local guides used while editing outlines.
Spacing adjustment between specific layers.
Layer-local notes displayed with a glyph.
Axis coordinates and rules that place layers in a design space.
Colors used to draw a layer.
Additional values stored for a layer.
Intersections between layer outlines and line segments.