98 void setImages (
bool resizeButtonNowToFitThisImage,
99 bool rescaleImagesWhenButtonSizeChanges,
100 bool preserveImageProportions,
101 const Image& normalImage,
102 float imageOpacityWhenNormal,
103 Colour overlayColourWhenNormal,
104 const Image& overImage,
105 float imageOpacityWhenOver,
106 Colour overlayColourWhenOver,
107 const Image& downImage,
108 float imageOpacityWhenDown,
109 Colour overlayColourWhenDown,
110 float hitTestAlphaThreshold = 0.0f);
113 Image getNormalImage()
const;
120 Image getOverImage()
const;
127 Image getDownImage()
const;
136 int imageX,
int imageY,
int imageW,
int imageH,
143 bool hitTest (
int x,
int y)
override;
145 void paintButton (
Graphics&,
bool,
bool)
override;
149 bool scaleImageToFit, preserveProportions;
150 uint8 alphaThreshold;
152 Image normalImage, overImage, downImage;
153 float normalOpacity, overOpacity, downOpacity;
154 Colour normalOverlay, overOverlay, downOverlay;
156 Image getCurrentImage()
const;