]> git.tdb.fi Git - libs/gltk.git/blob - source/hslider.h
f0cf8d3f74c4bcde906af010dda08cc237c318b1
[libs/gltk.git] / source / hslider.h
1 #ifndef MSP_GLTK_HSLIDER_H_
2 #define MSP_GLTK_HSLIDER_H_
3
4 #include "slider.h"
5
6 namespace Msp {
7 namespace GLtk {
8
9 /**
10 Horizontal slider widget.  A special part named "slider" will be positioned at
11 the current value of the widget.
12 */
13 class HSlider: public Slider
14 {
15 public:
16         HSlider();
17
18         virtual const char *get_class() const { return "hslider"; }
19
20 private:
21         virtual void autosize_special(const Part &, Geometry &) const;
22         virtual void rebuild_special(const Part &);
23
24 public:
25         virtual void button_press(int, int, unsigned);
26         virtual void button_release(int, int, unsigned);
27         virtual void pointer_motion(int, int);
28 private:
29         virtual void on_geometry_change();
30         virtual void on_style_change();
31 };
32
33 } // namespace GLtk
34 } // namespace Msp
35
36 #endif