3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_HSLIDER_H_
9 #define MSP_GLTK_HSLIDER_H_
17 Horizontal slider widget. A special part named "slider" will be positioned at
18 the current value of the widget. The fill_x attribute is ignored.
20 class HSlider: public Slider
25 double drag_start_value;
28 HSlider(const Resources &);
29 virtual void button_press(int, int, unsigned);
30 virtual void button_release(int, int, unsigned);
31 virtual void pointer_motion(int, int);
33 virtual const char *get_class() const { return "hslider"; }
34 virtual void render_part(const Part &) const;
35 unsigned get_slider_width() const;