X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fhslider.h;h=25ad0b19e597061f856496ade7e8d4085bfce92d;hb=c062ca892fc6e10f74a76991b5d4b4349c046b5f;hp=84a164e593a29b7bb824f23b7842f69946eed430;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/hslider.h b/source/hslider.h index 84a164e..25ad0b1 100644 --- a/source/hslider.h +++ b/source/hslider.h @@ -10,11 +10,17 @@ class HSlider: public Slider { public: HSlider(const Resources &); + void button_press(int, int, unsigned); + void button_release(int, int, unsigned); + void pointer_motion(int, int); private: + bool dragging; + int drag_start_x; + double drag_start_value; + + const char *get_class() const { return "hslider"; } void render_part(const Part &) const; - void on_button_press(int, int, unsigned); - void on_button_release(int, int, unsigned); - void pointer_motion(int, int); + unsigned get_slider_width() const; }; } // namespace GLtk