X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fslider.h;h=e2d810994c51387dab238b0d38fc78d9fb59a6f0;hb=eb6eee5fabf05abca4a0434c2a8f8f62c900afec;hp=e6cbe0d0a37706e02948e1e33ff7e7f743d840b7;hpb=8f6f543758fb1b2b17ae2db519198d420eb9982d;p=libs%2Fgltk.git diff --git a/source/slider.h b/source/slider.h index e6cbe0d..e2d8109 100644 --- a/source/slider.h +++ b/source/slider.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GLTK_SLIDER_H_ #define MSP_GLTK_SLIDER_H_ @@ -29,21 +22,30 @@ public: Slider &get_object() const; }; + sigc::signal signal_value_changed; + protected: double min, max; double value; double step; -public: - sigc::signal signal_value_changed; + bool dragging; + double drag_start_pos; + double drag_start_value; + unsigned drag_area_size; + + Slider(); -protected: - Slider(const Resources &); public: void set_value(double); 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