72 const bool resizeNowToFitThisShape,
73 const bool maintainShapeProportions_,
82 if (resizeNowToFitThisShape)
84 auto newBounds =
shape.getBounds();
87 newBounds = newBounds.expanded (4.0f);
103 shouldDrawButtonAsHighlighted =
false;
104 shouldDrawButtonAsDown =
false;
112 r =
r.reduced (2.0f);
114 if (shouldDrawButtonAsDown)
116 const float sizeReductionWhenPressed = 0.04f;
118 r =
r.reduced (sizeReductionWhenPressed *
r.getWidth(),
119 sizeReductionWhenPressed *
r.getHeight());
128 g.fillPath (
shape, trans);
Definition juce_BorderSize.h:42
Definition juce_Colour.h:38
void repaint()
Definition juce_Component.cpp:1917
void setSize(int newWidth, int newHeight)
Definition juce_Component.cpp:1262
ImageEffectFilter * getComponentEffect() const noexcept
Definition juce_Component.h:1147
bool isEnabled() const noexcept
Definition juce_Component.cpp:3104
Rectangle< int > getLocalBounds() const noexcept
Definition juce_Component.cpp:2283
void setComponentEffect(ImageEffectFilter *newEffect)
Definition juce_Component.cpp:2163
Definition juce_GraphicsContext.h:45
Definition juce_Path.h:65
Definition juce_PathStrokeType.h:42
Definition juce_Point.h:42
Definition juce_String.h:53
struct huft * t
Definition inflate.c:943
unsigned d
Definition inflate.c:940
int g
Definition inflate.c:1573
const Colour black
Definition juce_Colours.h:50
Definition carla_juce.cpp:31
#define false
Definition ordinals.h:83
Definition juce_DropShadowEffect.h:36
int n
Definition crypt.c:458
int r
Definition crypt.c:458