void DrawableRectangle::ValueTreeWrapper::setCornerSize (const RelativePoint& newSize, UndoManager* undoManager) { state.setProperty (cornerSize, newSize.toString(), undoManager); }
void DrawableText::ValueTreeWrapper::setFontSizeControlPoint (const RelativePoint& p, UndoManager* undoManager) { state.setProperty (fontSizeAnchor, p.toString(), undoManager); }
void DrawablePath::ValueTreeWrapper::Element::setControlPoint (const int index, const RelativePoint& point, UndoManager* undoManager) { jassert (index >= 0 && index < getNumControlPoints()); state.setProperty (index == 0 ? point1 : (index == 1 ? point2 : point3), point.toString(), undoManager); }