120 const float extraAccuracy = 4.0f;
137 return path.getBounds();
142 bool allowsClicksOnThisComponent, allowsClicksOnChildComponents;
145 if (! allowsClicksOnThisComponent)
151 return path.contains (globalX, globalY)
158 if (fill.colour == original && fill.isColour())
171 return changed1 || changed2;
#define noexcept
Definition DistrhoDefines.h:72
Definition juce_Array.h:56
Definition juce_Colour.h:38
AffineTransform getTransform() const
Definition juce_Component.cpp:1378
void repaint()
Definition juce_Component.cpp:1917
void getInterceptsMouseClicks(bool &allowsClicksOnThisComponent, bool &allowsClicksOnChildComponents) const noexcept
Definition juce_Component.cpp:1427
void setBoundsToEnclose(Rectangle< float >)
Definition juce_Drawable.cpp:133
void applyDrawableClipPath(Graphics &)
Definition juce_Drawable.cpp:54
Point< int > originRelativeToComponent
Definition juce_Drawable.h:203
Drawable()
Definition juce_Drawable.cpp:29
void transformContextToCorrectOrigin(Graphics &)
Definition juce_Drawable.cpp:123
Rectangle< float > getDrawableBounds() const override
Definition juce_DrawableShape.cpp:132
PathStrokeType strokeType
Definition juce_DrawableShape.h:116
bool hitTest(int x, int y) override
Definition juce_DrawableShape.cpp:140
void paint(Graphics &) override
Definition juce_DrawableShape.cpp:97
bool isStrokeVisible() const noexcept
Definition juce_DrawableShape.cpp:91
void pathChanged()
Definition juce_DrawableShape.cpp:112
void setStrokeFill(const FillType &newStrokeFill)
Definition juce_DrawableShape.cpp:59
void setStrokeThickness(float newThickness)
Definition juce_DrawableShape.cpp:86
void setDashLengths(const Array< float > &newDashLengths)
Definition juce_DrawableShape.cpp:77
FillType strokeFill
Definition juce_DrawableShape.h:121
bool replaceColour(Colour originalColour, Colour replacementColour) override
Definition juce_DrawableShape.cpp:167
Path getOutlineAsPath() const override
Definition juce_DrawableShape.cpp:174
void setFill(const FillType &newFill)
Definition juce_DrawableShape.cpp:50
~DrawableShape() override
Definition juce_DrawableShape.cpp:45
Path path
Definition juce_DrawableShape.h:118
Array< float > dashLengths
Definition juce_DrawableShape.h:117
Path strokePath
Definition juce_DrawableShape.h:118
FillType mainFill
Definition juce_DrawableShape.h:121
void setStrokeType(const PathStrokeType &newStrokeType)
Definition juce_DrawableShape.cpp:68
void strokeChanged()
Definition juce_DrawableShape.cpp:117
DrawableShape()
Definition juce_DrawableShape.cpp:29
Definition juce_FillType.h:41
Definition juce_GraphicsContext.h:45
Definition juce_Path.h:65
Definition juce_PathStrokeType.h:42
Definition juce_Rectangle.h:67
int y
Definition inflate.c:1588
int g
Definition inflate.c:1573
unsigned x[BMAX+1]
Definition inflate.c:1586
Definition juce_Colours.h:38
Definition carla_juce.cpp:31
static bool replaceColourInFill(FillType &fill, Colour original, Colour replacement)
Definition juce_DrawableShape.cpp:156
#define const
Definition zconf.h:137