Declaration

func getStrokeSettingsWidth(_ width: AutoreleasingUnsafeMutablePointer<NSString?>?, height: AutoreleasingUnsafeMutablePointer<NSString?>?, pos: UnsafeMutablePointer<CGFloat>?, capStart: UnsafeMutablePointer<GSLineCapStyle>?, capEnd: UnsafeMutablePointer<GSLineCapStyle>?, join: UnsafeMutablePointer<GSLineJoinStyle>?, fill: UnsafeMutablePointer<ObjCBool>?, maskType: UnsafeMutablePointer<GSMaskType>?) -> Bool

Declaration

- (BOOL) getStrokeSettingsWidth:(NSString **) width height:(NSString **) height pos:(CGFloat *) pos capStart:(GSLineCapStyle *) capStart capEnd:(GSLineCapStyle *) capEnd join:(GSLineJoinStyle *) join fill:(BOOL *) fill maskType:(GSMaskType *) maskType;

Declaration

getStrokeSettingsWidth_height_pos_capStart_capEnd_join_fill_maskType_(pos: float, capStart: GSLineCapStyle, capEnd: GSLineCapStyle, join: GSLineJoinStyle, fill: bool, maskType: GSMaskType) -> tuple[bool, str, str]

Parameters

width

On return, the stroke width expression.

height

On return, the stroke height expression.

pos

On return, the stroke position from -1 on the left to 1 on the right of the path direction.

capStart

On return, the cap at the start of an open path.

capEnd

On return, the cap at the end of an open path.

join

On return, the construction used at joins.

fill

On return, whether the path remains filled when it has a stroke.

maskType

On return, the shape’s mask behavior.

Return Value

YES.

Discussion

Missing settings use a centered stroke with butt caps, miter joins, and no fill or mask. Width and height receive NSNoSelectionMarker when their respective expressions are absent.

See Also

Stroke Style

  • The horizontal size expression used to expand the path into a stroke.

  • The vertical size expression used to expand the path into a stroke.

  • The stroke position from -1 on the left to 1 on the right of the path direction.

  • The construction used at an open stroke endpoint.

  • The cap at the start of an open path.

  • The cap at the end of an open path.

  • The construction used to connect consecutive stroke segments.

  • The construction used to connect consecutive stroke segments.

  • Whether the path remains filled when it has a stroke.