summaryrefslogtreecommitdiff
path: root/src/interface/Slider.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-22 14:14:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-22 14:14:17 (GMT)
commit9abe51526cac2634af0541c3de69834dd30e9f78 (patch)
tree6ae4deadfe00a83094b9d288d8c11d8ce823577a /src/interface/Slider.h
parent2c311b9a36a88fadd96f3d39acb1ab2590835d81 (diff)
downloadpowder-9abe51526cac2634af0541c3de69834dd30e9f78.zip
powder-9abe51526cac2634af0541c3de69834dd30e9f78.tar.gz
Move all GUI source files into gui/
Diffstat (limited to 'src/interface/Slider.h')
-rw-r--r--src/interface/Slider.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/interface/Slider.h b/src/interface/Slider.h
deleted file mode 100644
index b02366e..0000000
--- a/src/interface/Slider.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef SLIDER_H_
-#define SLIDER_H_
-
-#include "Component.h"
-#include "Colour.h"
-
-namespace ui {
-class Slider;
-class SliderAction
-{
-public:
- virtual void ValueChangedCallback(ui::Slider * sender) {}
- virtual ~SliderAction() {}
-};
-class Slider: public ui::Component {
- friend class SliderAction;
- int sliderSteps;
- int sliderPosition;
- bool isMouseDown;
- unsigned char * bgGradient;
- SliderAction * actionCallback;
- Colour col1, col2;
- void updatePosition(int position);
-public:
- Slider(Point position, Point size, int steps);
- virtual void OnMouseMoved(int x, int y, int dx, int dy);
- 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);
- int GetSteps();
- void SetSteps(int steps);
- virtual ~Slider();
-};
-
-} /* namespace ui */
-#endif /* SLIDER_H_ */