A drawable object which renders a filled or outlined shape. More...
Inherits DrawableShape.
Classes | |
| class | ValueTreeWrapper |
| Internally-used class for wrapping a DrawablePath's state into a ValueTree. More... | |
Public Member Functions | |
| DrawablePath () | |
| Creates a DrawablePath. | |
| DrawablePath (const DrawablePath &other) | |
| ~DrawablePath () | |
| Destructor. | |
| void | setPath (const Path &newPath) |
| Changes the path that will be drawn. | |
| void | setPath (const RelativePointPath &newPath) |
| Sets the path using a RelativePointPath. | |
| const Path & | getPath () const |
| Returns the current path. | |
| const Path & | getStrokePath () const |
| Returns the current path for the outline. | |
| Drawable * | createCopy () const |
| void | refreshFromValueTree (const ValueTree &tree, ComponentBuilder &builder) |
| ValueTree | createValueTree (ComponentBuilder::ImageProvider *imageProvider) const |
Static Public Attributes | |
| static const Identifier | valueTreeType |
A drawable object which renders a filled or outlined shape.
For details on how to change the fill and stroke, see the DrawableShape class.
Creates a DrawablePath.
| DrawablePath::DrawablePath | ( | const DrawablePath & | other | ) |
Destructor.
| void DrawablePath::setPath | ( | const Path & | newPath | ) |
Changes the path that will be drawn.
| void DrawablePath::setPath | ( | const RelativePointPath & | newPath | ) |
Sets the path using a RelativePointPath.
Calling this will set up a Component::Positioner to automatically update the path if any of the points in the source path are dynamic.
| const Path& DrawablePath::getPath | ( | ) | const |
Returns the current path.
| const Path& DrawablePath::getStrokePath | ( | ) | const |
Returns the current path for the outline.
| Drawable* DrawablePath::createCopy | ( | ) | const [virtual] |
Implements Drawable.
| void DrawablePath::refreshFromValueTree | ( | const ValueTree & | tree, |
| ComponentBuilder & | builder | ||
| ) |
| ValueTree DrawablePath::createValueTree | ( | ComponentBuilder::ImageProvider * | imageProvider | ) | const [virtual] |
Implements Drawable.
const Identifier DrawablePath::valueTreeType [static] |