39 return std::make_unique<DrawablePath> (*
this);
A drawable object which renders a filled or outlined shape.
void setPath(const Path &newPath)
Changes the path that will be drawn.
const Path & getPath() const
Returns the current path.
std::unique_ptr< Drawable > createCopy() const override
Creates a deep copy of this Drawable object.
const Path & getStrokePath() const
Returns the current path for the outline.
DrawablePath()
Creates a DrawablePath.
~DrawablePath() override
Destructor.
A base class implementing common functionality for Drawable classes which consist of some kind of fil...
void pathChanged()
Called when the cached path should be updated.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...