]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/slider.h
Pass coordinates relative to the receiving widget's geometry
[libs/gltk.git] / source / slider.h
index e6cbe0d0a37706e02948e1e33ff7e7f743d840b7..6c95526f13f2699f14c89049fe5f252510383a2e 100644 (file)
@@ -34,6 +34,11 @@ protected:
        double value;
        double step;
 
+       bool dragging;
+       double drag_start_pos;
+       double drag_start_value;
+       unsigned drag_area_size;
+
 public:
        sigc::signal<void, double> signal_value_changed;
 
@@ -44,6 +49,10 @@ public:
        void set_range(double, double);
        void set_step(double);
        double get_value() const { return value; }
+protected:
+       void start_drag(int);
+       void drag(int);
+       void end_drag();
 };
 
 } // namespace GLtk