DrawableRectangle::ValueTreeWrapper Class Reference

Internally-used class for wrapping a DrawableRectangle's state into a ValueTree. More...

Inheritance diagram for DrawableRectangle::ValueTreeWrapper:

Public Member Functions

 ValueTreeWrapper (const ValueTree &state)
RelativeParallelogram getRectangle () const
void setRectangle (const RelativeParallelogram &newBounds, UndoManager *)
void setCornerSize (const RelativePoint &cornerSize, UndoManager *)
RelativePoint getCornerSize () const
Value getCornerSizeValue (UndoManager *)
- Public Member Functions inherited from DrawableShape::FillAndStrokeState
 FillAndStrokeState (const ValueTree &state)
ValueTree getFillState (const Identifier &fillOrStrokeType)
RelativeFillType getFill (const Identifier &fillOrStrokeType, ComponentBuilder::ImageProvider *) const
void setFill (const Identifier &fillOrStrokeType, const RelativeFillType &newFill, ComponentBuilder::ImageProvider *, UndoManager *)
PathStrokeType getStrokeType () const
void setStrokeType (const PathStrokeType &newStrokeType, UndoManager *)
- Public Member Functions inherited from Drawable::ValueTreeWrapperBase
 ValueTreeWrapperBase (const ValueTree &state)
ValueTreegetState () noexcept
String getID () const
void setID (const String &newID)

Static Public Attributes

static const Identifier topLeft
static const Identifier topRight
static const Identifier bottomLeft
static const Identifier cornerSize
- Static Public Attributes inherited from DrawableShape::FillAndStrokeState
static const Identifier type
static const Identifier colour
static const Identifier colours
static const Identifier fill
static const Identifier stroke
static const Identifier path
static const Identifier jointStyle
static const Identifier capStyle
static const Identifier strokeWidth
static const Identifier gradientPoint1
static const Identifier gradientPoint2
static const Identifier gradientPoint3
static const Identifier radial
static const Identifier imageId
static const Identifier imageOpacity

Additional Inherited Members

- Public Attributes inherited from Drawable::ValueTreeWrapperBase
ValueTree state

Detailed Description

Internally-used class for wrapping a DrawableRectangle's state into a ValueTree.

Constructor & Destructor Documentation

◆ ValueTreeWrapper()

DrawableRectangle::ValueTreeWrapper::ValueTreeWrapper ( const ValueTree state)

Member Function Documentation

◆ getRectangle()

RelativeParallelogram DrawableRectangle::ValueTreeWrapper::getRectangle ( ) const

◆ setRectangle()

void DrawableRectangle::ValueTreeWrapper::setRectangle ( const RelativeParallelogram newBounds,

◆ setCornerSize()

void DrawableRectangle::ValueTreeWrapper::setCornerSize ( const RelativePoint cornerSize,

◆ getCornerSize()

RelativePoint DrawableRectangle::ValueTreeWrapper::getCornerSize ( ) const

◆ getCornerSizeValue()

Value DrawableRectangle::ValueTreeWrapper::getCornerSizeValue ( UndoManager )

Member Data Documentation

◆ topLeft

const Identifier DrawableRectangle::ValueTreeWrapper::topLeft

◆ topRight

const Identifier DrawableRectangle::ValueTreeWrapper::topRight

◆ bottomLeft

const Identifier DrawableRectangle::ValueTreeWrapper::bottomLeft

◆ cornerSize

const Identifier DrawableRectangle::ValueTreeWrapper::cornerSize

The documentation for this class was generated from the following file: