class

StrokeCap

@Js
@Serializable { simple=true }
const class StrokeCap : Enum

Defines how a stroke end cap is rendered

constructors fromStr

Return the StrokeCap instance for the specified name

fields butt

Cap is a flat edge with no extension

round

Cap is a a rounded semi-circle

square

Cap is a half square extension

vals

List of StrokeCap values indexed by ordinal

butt const static StrokeCap : butt

Cap is a flat edge with no extension

fromStr static new fromStr(Str name, Bool checked := true)

Return the StrokeCap instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

round const static StrokeCap : round

Cap is a a rounded semi-circle

square const static StrokeCap : square

Cap is a half square extension

vals const static StrokeCap[] : vals

List of StrokeCap values indexed by ordinal

Haxall 4.0.6 ∙ 21-Jul-2026 09:48 EDT