50 ImageOnButtonBackground,
54 ImageOnButtonBackgroundOriginalSize,
69 ButtonStyle buttonStyle);
103 void setImages (
const Drawable* normalImage,
104 const Drawable* overImage =
nullptr,
105 const Drawable* downImage =
nullptr,
106 const Drawable* disabledImage =
nullptr,
107 const Drawable* normalImageOn =
nullptr,
108 const Drawable* overImageOn =
nullptr,
109 const Drawable* downImageOn =
nullptr,
110 const Drawable* disabledImageOn =
nullptr);
117 void setButtonStyle (ButtonStyle newStyle);
126 void setEdgeIndent (
int numPixelsIndent);
133 Drawable* getCurrentImage() const noexcept;
136 Drawable* getNormalImage() const noexcept;
138 Drawable* getOverImage() const noexcept;
140 Drawable* getDownImage() const noexcept;
143 virtual
Rectangle<
float> getImageBounds() const;
158 textColourId = 0x1004010,
159 textColourOnId = 0x1004013,
161 backgroundColourId = 0x1004011,
165 backgroundOnColourId = 0x1004012,
173 void paintButton (
Graphics&,
bool,
bool)
override;
175 void buttonStateChanged()
override;
177 void resized()
override;
179 void enablementChanged()
override;
181 void colourChanged()
override;
185 bool shouldDrawButtonBackground()
const {
return style == ImageOnButtonBackground || style == ImageOnButtonBackgroundOriginalSize; }
190 normalImageOn, overImageOn, downImageOn, disabledImageOn;
191 Drawable* currentImage =
nullptr;
The base class for objects which can draw themselves, e.g.
A graphics context, used for drawing a component or image.
Manages a rectangle and allows geometric operations to be performed on it.