Loading...
Searching...
No Matches
juce::StrokeOptions Class Reference

Detailed Description

The set of SVG stroke attributes.


The documentation for this class was generated from the following file:

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.

Member Functions

◆ withColour()

StrokeOptions juce::StrokeOptions::withColour ( Colour x) const
inlinenodiscard

Returns a copy of these attributes with a new colour.

References juce::withMember(), and x.

◆ withDashArray()

StrokeOptions juce::StrokeOptions::withDashArray ( Span< const float > x) const
inlinenodiscard

Returns a copy of these attributes with a new dash array.

References juce::withMember(), and x.

◆ withDashOffset()

StrokeOptions juce::StrokeOptions::withDashOffset ( float x) const
inlinenodiscard

Returns a copy of these attributes with a new dash offset.

References juce::withMember(), and x.

◆ withLineCap()

StrokeOptions juce::StrokeOptions::withLineCap ( PathStrokeType::EndCapStyle x) const
inlinenodiscard

Returns a copy of these attributes with a new line cap style.

References juce::withMember(), and x.

◆ withLineJoin()

StrokeOptions juce::StrokeOptions::withLineJoin ( PathStrokeType::JointStyle x) const
inlinenodiscard

Returns a copy of these attributes with a new line join style.

References juce::withMember(), and x.

◆ withMiterLimit()

StrokeOptions juce::StrokeOptions::withMiterLimit ( float x) const
inlinenodiscard

Returns a copy of these attributes with a new miter limit.

References juce::withMember(), and x.

◆ withWidth()

StrokeOptions juce::StrokeOptions::withWidth ( float x) const
inlinenodiscard

Returns a copy of these attributes with a new stroke width.

References juce::withMember(), and x.

◆ getColour()

const auto & juce::StrokeOptions::getColour ( ) const
inline
See also
withColour()

◆ getDashArray()

Span< const float > juce::StrokeOptions::getDashArray ( ) const
inline
See also
withDashArray()

◆ getDashOffset()

const auto & juce::StrokeOptions::getDashOffset ( ) const
inline

◆ getLineCap()

const auto & juce::StrokeOptions::getLineCap ( ) const
inline
See also
withLineCap()

◆ getLineJoin()

const auto & juce::StrokeOptions::getLineJoin ( ) const
inline
See also
withLineJoin()

◆ getMiterLimit()

const auto & juce::StrokeOptions::getMiterLimit ( ) const
inline

◆ getWidth()

const auto & juce::StrokeOptions::getWidth ( ) const
inline
See also
withWidth()

◆ createStrokeType()

PathStrokeType juce::StrokeOptions::createStrokeType ( ) const
inline

Creates a PathStrokeType object based on the current attributes.

References juce::PathStrokeType::setMiterLimit().

◆ operator==()

bool juce::StrokeOptions::operator== ( const StrokeOptions & other) const
noexcept

Equality operator.

◆ operator!=()

bool juce::StrokeOptions::operator!= ( const StrokeOptions & other) const
inlinenoexcept

Inequality operator.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram