The set of SVG stroke attributes.
Public Member Functions | |
| StrokeOptions | withColour (Colour x) const |
| Returns a copy of these attributes with a new colour. | |
| StrokeOptions | withDashArray (Span< const float > x) const |
| Returns a copy of these attributes with a new dash array. | |
| StrokeOptions | withDashOffset (float x) const |
| Returns a copy of these attributes with a new dash offset. | |
| StrokeOptions | withLineCap (PathStrokeType::EndCapStyle x) const |
| Returns a copy of these attributes with a new line cap style. | |
| StrokeOptions | withLineJoin (PathStrokeType::JointStyle x) const |
| Returns a copy of these attributes with a new line join style. | |
| StrokeOptions | withMiterLimit (float x) const |
| Returns a copy of these attributes with a new miter limit. | |
| StrokeOptions | withWidth (float x) const |
| Returns a copy of these attributes with a new stroke width. | |
| const auto & | getColour () const |
| Span< const float > | getDashArray () const |
| const auto & | getDashOffset () const |
| const auto & | getLineCap () const |
| const auto & | getLineJoin () const |
| const auto & | getMiterLimit () const |
| const auto & | getWidth () const |
| PathStrokeType | createStrokeType () const |
| Creates a PathStrokeType object based on the current attributes. | |
| bool | operator== (const StrokeOptions &other) const noexcept |
| Equality operator. | |
| bool | operator!= (const StrokeOptions &other) const noexcept |
| Inequality operator. | |
|
inlinenodiscard |
Returns a copy of these attributes with a new colour.
References juce::withMember(), and x.
|
inlinenodiscard |
Returns a copy of these attributes with a new dash array.
References juce::withMember(), and x.
|
inlinenodiscard |
Returns a copy of these attributes with a new dash offset.
References juce::withMember(), and x.
|
inlinenodiscard |
Returns a copy of these attributes with a new line cap style.
References juce::withMember(), and x.
|
inlinenodiscard |
Returns a copy of these attributes with a new line join style.
References juce::withMember(), and x.
|
inlinenodiscard |
Returns a copy of these attributes with a new miter limit.
References juce::withMember(), and x.
|
inlinenodiscard |
Returns a copy of these attributes with a new stroke width.
References juce::withMember(), and x.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Creates a PathStrokeType object based on the current attributes.
References juce::PathStrokeType::setMiterLimit().
|
noexcept |
Equality operator.
|
inlinenoexcept |
Inequality operator.