1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Removal of RelativeCoordinate classes from the Drawables

This commit is contained in:
jules 2017-12-20 12:37:25 +00:00
parent ce8b2d865a
commit 3300e71e17
22 changed files with 162 additions and 2089 deletions

View file

@ -196,10 +196,7 @@ public:
newState.parseSubElements (xml, *drawable);
drawable->setContentArea (RelativeRectangle (RelativeCoordinate (viewboxXY.x),
RelativeCoordinate (viewboxXY.x + newState.viewBoxW),
RelativeCoordinate (viewboxXY.y),
RelativeCoordinate (viewboxXY.y + newState.viewBoxH)));
drawable->setContentArea ({ viewboxXY.x, viewboxXY.y, newState.viewBoxW, newState.viewBoxH });
drawable->resetBoundingBoxToContentArea();
return drawable;