A Drawable object which draws a rectangle. More...
Inherits DrawableShape.
Classes | |
| class | ValueTreeWrapper |
| Internally-used class for wrapping a DrawableRectangle's state into a ValueTree. More... | |
Public Member Functions | |
| DrawableRectangle () | |
| DrawableRectangle (const DrawableRectangle &other) | |
| ~DrawableRectangle () | |
| Destructor. | |
| void | setRectangle (const RelativeParallelogram &newBounds) |
| Sets the rectangle's bounds. | |
| const RelativeParallelogram & | getRectangle () const noexcept |
| Returns the rectangle's bounds. | |
| const RelativePoint & | getCornerSize () const noexcept |
| Returns the corner size to be used. | |
| void | setCornerSize (const RelativePoint &newSize) |
| Sets a new corner size for the rectangle. | |
| 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 draws a rectangle.
For details on how to change the fill and stroke, see the DrawableShape class.
| DrawableRectangle::DrawableRectangle | ( | const DrawableRectangle & | other | ) |
Destructor.
| void DrawableRectangle::setRectangle | ( | const RelativeParallelogram & | newBounds | ) |
Sets the rectangle's bounds.
| const RelativeParallelogram& DrawableRectangle::getRectangle | ( | ) | const |
Returns the rectangle's bounds.
| const RelativePoint& DrawableRectangle::getCornerSize | ( | ) | const |
Returns the corner size to be used.
| void DrawableRectangle::setCornerSize | ( | const RelativePoint & | newSize | ) |
Sets a new corner size for the rectangle.
| Drawable* DrawableRectangle::createCopy | ( | ) | const [virtual] |
Implements Drawable.
| void DrawableRectangle::refreshFromValueTree | ( | const ValueTree & | tree, |
| ComponentBuilder & | builder | ||
| ) |
| ValueTree DrawableRectangle::createValueTree | ( | ComponentBuilder::ImageProvider * | imageProvider | ) | const [virtual] |
Implements Drawable.
const Identifier DrawableRectangle::valueTreeType [static] |