]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/hslider.h
Rework event passing system to allow for pointer grabs
[libs/gltk.git] / source / hslider.h
index 84a164e593a29b7bb824f23b7842f69946eed430..25ad0b19e597061f856496ade7e8d4085bfce92d 100644 (file)
@@ -10,11 +10,17 @@ class HSlider: public Slider
 {
 public:
        HSlider(const Resources &);
+       void button_press(int, int, unsigned);
+       void button_release(int, int, unsigned);
+       void pointer_motion(int, int);
 private:
+       bool dragging;
+       int drag_start_x;
+       double drag_start_value;
+
+       const char *get_class() const { return "hslider"; }
        void render_part(const Part &) const;
-       void on_button_press(int, int, unsigned);
-       void on_button_release(int, int, unsigned);
-       void pointer_motion(int, int);
+       unsigned get_slider_width() const;
 };
 
 } // namespace GLtk