Instance Method
getStrokeSettingsWidth(_:height:pos:capStart:capEnd:join:fill:maskType:) getStrokeSettingsWidth:height:pos:capStart:capEnd:join:fill:maskType: getStrokeSettingsWidth_height_pos_capStart_capEnd_join_fill_maskType_
Reads the shape’s stroke style into optional output parameters.
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>?) -> BoolDeclaration
- (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
widthOn return, the stroke width expression.
heightOn return, the stroke height expression.
posOn return, the stroke position from
-1on the left to1on the right of the path direction.capStartOn return, the cap at the start of an open path.
capEndOn return, the cap at the end of an open path.
joinOn return, the construction used at joins.
fillOn return, whether the path remains filled when it has a stroke.
maskTypeOn 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
-1on the left to1on 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.