]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/vslider.h
Refactor filling from Part to Alignment
[libs/gltk.git] / source / vslider.h
diff --git a/source/vslider.h b/source/vslider.h
new file mode 100644 (file)
index 0000000..2696051
--- /dev/null
@@ -0,0 +1,37 @@
+/* $Id$
+
+This file is part of libmspgltk
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GLTK_VSLIDER_H_
+#define MSP_GLTK_VSLIDER_H_
+
+#include "slider.h"
+
+namespace Msp {
+namespace GLtk {
+
+class VSlider: public Slider
+{
+private:
+       bool dragging;
+       int drag_start_y;
+       double drag_start_value;
+
+public:
+       VSlider(const Resources &);
+       virtual void button_press(int, int, unsigned);
+       virtual void button_release(int, int, unsigned);
+       virtual void pointer_motion(int, int);
+private:
+       virtual const char *get_class() const { return "vslider"; }
+       virtual void render_special(const Part &) const;
+       unsigned get_slider_height() const;
+};
+
+} // namespace GLtk
+} // namespace Msp
+
+#endif