|
|
@@ -186,6 +186,18 @@ public: |
|
|
|
*/
|
|
|
|
virtual bool replaceColour (Colour originalColour, Colour replacementColour);
|
|
|
|
|
|
|
|
/** Sets a transformation that applies to the same coordinate system in which the rest of the
|
|
|
|
draw calls are made. You almost certainly want to call this function when working with
|
|
|
|
Drawables as opposed to Component::setTransform().
|
|
|
|
|
|
|
|
The reason for this is that the origin of a Drawable is not the same as the point returned
|
|
|
|
by Component::getPosition() but has an additional offset internal to the Drawable class.
|
|
|
|
|
|
|
|
Using setDrawableTransform() will take this internal offset into account when applying the
|
|
|
|
transform to the Component base.
|
|
|
|
*/
|
|
|
|
void setDrawableTransform (const AffineTransform& transform);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//==============================================================================
|
|
|
|
friend class DrawableComposite;
|
|
|
@@ -202,8 +214,10 @@ protected: |
|
|
|
|
|
|
|
Point<int> originRelativeToComponent;
|
|
|
|
std::unique_ptr<Drawable> drawableClipPath;
|
|
|
|
AffineTransform drawableTransform;
|
|
|
|
|
|
|
|
void nonConstDraw (Graphics&, float opacity, const AffineTransform&);
|
|
|
|
void updateTransform();
|
|
|
|
|
|
|
|
Drawable (const Drawable&);
|
|
|
|
Drawable& operator= (const Drawable&);
|
|
|
|