78 JointStyle jointStyle,
79 EndCapStyle endStyle = butt)
noexcept;
107 void createStrokedPath (
Path& destPath,
108 const
Path& sourcePath,
110 float extraAccuracy = 1.0f) const;
137 void createDashedStroke (
Path& destPath,
138 const
Path& sourcePath,
139 const
float* dashLengths,
142 float extraAccuracy = 1.0f) const;
164 void createStrokeWithArrowheads (
Path& destPath,
165 const
Path& sourcePath,
166 float arrowheadStartWidth,
float arrowheadStartLength,
167 float arrowheadEndWidth,
float arrowheadEndLength,
169 float extraAccuracy = 1.0f) const;
173 float getStrokeThickness() const noexcept {
return thickness; }
200 JointStyle jointStyle;
201 EndCapStyle endStyle;
Describes a type of stroke used to render a solid outline along a path.
JointStyle
The type of shape to use for the corners between two adjacent line segments.
@ curved
Indicates that corners should be drawn as rounded-off.
EndCapStyle getEndStyle() const noexcept
Returns the end-cap style.
void setStrokeThickness(float newThickness) noexcept
Sets the stroke thickness.
EndCapStyle
The type shape to use for the ends of lines.
@ butt
Ends of lines are flat and don't extend beyond the end point.
void setEndStyle(EndCapStyle newStyle) noexcept
Sets the end-cap style.
JointStyle getJointStyle() const noexcept
Returns the joint style.
void setJointStyle(JointStyle newStyle) noexcept
Sets the joint style.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
constexpr NumericType square(NumericType n) noexcept
Returns the square of its argument.