3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_SLIDER_H_
9 #define MSP_GLTK_SLIDER_H_
11 #include <sigc++/sigc++.h>
18 Sliders are used to adjust numeric values visually. This class provides the
19 common interface for sliders - see classes HSlider and VSlider for concrete
22 class Slider: public Widget
25 class Loader: public Widget::Loader
29 Slider &get_object() const;
38 double drag_start_pos;
39 double drag_start_value;
40 unsigned drag_area_size;
43 sigc::signal<void, double> signal_value_changed;
46 Slider(const Resources &);
48 void set_value(double);
49 void set_range(double, double);
50 void set_step(double);
51 double get_value() const { return value; }