mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Minor changes to drawables and SelectedItemSet. Made OpenGLComponent::deleteContext public.
This commit is contained in:
parent
4521e6ea84
commit
e777282966
9 changed files with 69 additions and 24 deletions
|
|
@ -319,6 +319,15 @@ void DrawablePath::ValueTreeWrapper::Element::setControlPoint (const int index,
|
|||
return state.setProperty (index == 0 ? point1 : (index == 1 ? point2 : point3), point.toString(), undoManager);
|
||||
}
|
||||
|
||||
const RelativePoint DrawablePath::ValueTreeWrapper::Element::getEndPoint() const
|
||||
{
|
||||
const Identifier i (state.getType());
|
||||
if (i == startSubPathElement || i == lineToElement) return getControlPoint (0);
|
||||
if (i == quadraticToElement) return getControlPoint (1);
|
||||
if (i == cubicToElement) return getControlPoint (2);
|
||||
|
||||
return RelativePoint();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
const Rectangle<float> DrawablePath::refreshFromValueTree (const ValueTree& tree, ImageProvider*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue