diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-05 15:24:52 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-05 15:24:52 (GMT) |
| commit | 55acb6aa801f89f14ccc2ae469247149b19a806d (patch) | |
| tree | abddd11e985a92697a955bb770829c4f68dc6f92 /src/interface/Slider.h | |
| parent | 644e6770e43e5ed568b0cdc14d63f20869d7fccc (diff) | |
| download | powder-55acb6aa801f89f14ccc2ae469247149b19a806d.zip powder-55acb6aa801f89f14ccc2ae469247149b19a806d.tar.gz | |
More fancy Sliders for deco colour
Diffstat (limited to 'src/interface/Slider.h')
| -rw-r--r-- | src/interface/Slider.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface/Slider.h b/src/interface/Slider.h index 682bc09..4992f80 100644 --- a/src/interface/Slider.h +++ b/src/interface/Slider.h @@ -9,6 +9,7 @@ #define SLIDER_H_ #include "Component.h" +#include "Colour.h" namespace ui { class Slider; @@ -23,6 +24,7 @@ class Slider: public ui::Component { int sliderSteps; int sliderPosition; bool isMouseDown; + unsigned char * bgGradient; SliderAction * actionCallback; void updatePosition(int position); public: @@ -31,6 +33,7 @@ public: virtual void OnMouseClick(int x, int y, unsigned button); virtual void OnMouseUp(int x, int y, unsigned button); virtual void Draw(const Point& screenPos); + void SetColour(Colour col1, Colour col2); void SetActionCallback(SliderAction * action) { actionCallback = action; } int GetValue(); void SetValue(int value); |
