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

openPen

The destination for open paths, or nil to omit them.

secondPen

The destination for auxiliary geometry, or nil to omit it.

extraHandles

A 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