Instance Method
draw(inPen:openPen:secondaryPen:extraHandles:) drawInPen:openPen:secondaryPen:extraHandles: drawInPen_openPen_secondaryPen_extraHandles_
Writes the shape to separate pens for closed paths, open paths, and auxiliary output.
Declaration
func draw(inPen pen: any GSPenProtocol & NSObjectProtocol, openPen: (any GSPenProtocol & NSObjectProtocol)?, secondaryPen secondPen: (any GSPenProtocol & NSObjectProtocol)?, extraHandles: NSMutableArray?)Declaration
- (void) drawInPen:(NSObject<GSPenProtocol> *) pen openPen:(NSObject<GSPenProtocol> *) openPen secondaryPen:(NSObject<GSPenProtocol> *) secondPen extraHandles:(NSMutableArray *) extraHandles;Declaration
drawInPen_openPen_secondaryPen_extraHandles_(pen: NSObject<GSPenProtocol>, openPen: NSObject<GSPenProtocol>, secondPen: NSObject<GSPenProtocol>, extraHandles: list)Parameters
openPenThe destination for open paths, or
nilto omit them.secondPenThe destination for auxiliary geometry, or
nilto omit it.extraHandlesA mutable array for additional handles produced while preparing the shape.
Discussion
Closed paths are written to pen and open paths are written to openPen. When openPen is nil, open paths produce no primary output. The secondary pen receives auxiliary geometry generated while resolving path decorations and masks. The extra handles array is available to drawing preparation callbacks.
See Also
Drawing
Writes the shape to a pen.
Writes the basic shape representation to a pen without resolving path decorations.
Writes the basic shape representation to a pen, optionally omitting segment object information.