57 void setFill (
const FillType& newFill);
67 void setStrokeFill (
const FillType& newStrokeFill);
83 void setStrokeThickness (
float newThickness);
89 void setDashLengths (
const Array<float>& newDashLengths);
100 bool hitTest (
int x,
int y)
override;
102 bool replaceColour (
Colour originalColour,
Colour replacementColour)
override;
104 Path getOutlineAsPath()
const override;
111 void strokeChanged();
113 bool isStrokeVisible() const noexcept;
117 Array<
float> dashLengths;
118 Path path, strokePath;
Holds a resizable array of primitive or copy-by-value objects.
Represents a colour, also including a transparency value.
A base class implementing common functionality for Drawable classes which consist of some kind of fil...
const FillType & getFill() const noexcept
Returns the current fill type.
const FillType & getStrokeFill() const noexcept
Returns the current stroke fill.
const Array< float > & getDashLengths() const noexcept
Returns the set of dash lengths that the path is using.
const PathStrokeType & getStrokeType() const noexcept
Returns the current outline style.
The base class for objects which can draw themselves, e.g.
Represents a colour or fill pattern to use for rendering paths.
A graphics context, used for drawing a component or image.
Describes a type of stroke used to render a solid outline along a path.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
Manages a rectangle and allows geometric operations to be performed on it.