32class BoundsChangeListener
final :
private ComponentListener
37 componentListenerGuard { [comp = &c, this] { comp->removeComponentListener (
this); } }
41 c.addComponentListener (
this);
45 void componentMovedOrResized (Component&,
bool,
bool)
override
97 void draw (
Graphics& g,
float opacity,
113 void drawAt (
Graphics& g,
float x,
float y,
float opacity)
const;
134 float opacity)
const;
141 void setOriginWithOriginalSize (
Point<float> originWithinParent);
202 static Path parseSVGPath (
const String& svgPath);
214 virtual bool replaceColour (
Colour originalColour,
Colour replacementColour);
237 void transformContextToCorrectOrigin (
Graphics&);
243 void applyDrawableClipPath (
Graphics&);
257 void updateTransform();
259 detail::BoundsChangeListener boundsChangeListener { *
this, [
this] { updateTransform(); } };
Represents a colour, also including a transparency value.
The base class for all JUCE user-interface objects.
virtual void parentHierarchyChanged()
Called to indicate that the component's parents have changed.
A drawable object which acts as a container for a set of other Drawables.
A base class implementing common functionality for Drawable classes which consist of some kind of fil...
The base class for objects which can draw themselves, e.g.
virtual std::unique_ptr< Drawable > createCopy() const =0
Creates a deep copy of this Drawable object.
virtual Path getOutlineAsPath() const =0
Creates a path that describes the outline of this drawable.
virtual Rectangle< float > getDrawableBounds() const =0
Returns the area that this drawable covers.
Represents a local file or directory.
A graphics context, used for drawing a component or image.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
A pair of (x, y) coordinates.
Defines the method used to position some kind of rectangular object within a rectangular viewport.
Manages a rectangle and allows geometric operations to be performed on it.
Used to build a tree of elements representing an XML document.
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...