X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fslider.h;h=e2d810994c51387dab238b0d38fc78d9fb59a6f0;hb=3d84860cb25cf05ed36ee6cbd07d9e58cee52422;hp=c4326e3eac0edf5571ac29b96ee82adb3ba63abc;hpb=91997dd3189b93a67179822ec2fed5f2a7bddb74;p=libs%2Fgltk.git diff --git a/source/slider.h b/source/slider.h index c4326e3..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,6 +22,8 @@ public: Slider &get_object() const; }; + sigc::signal signal_value_changed; + protected: double min, max; double value; @@ -39,16 +34,14 @@ protected: double drag_start_value; unsigned drag_area_size; -public: - sigc::signal signal_value_changed; - -protected: Slider(); + 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);