]> git.tdb.fi Git - libs/gltk.git/blob - source/vslider.h
2696051b7f7d47ee28989fd527152179b558135e
[libs/gltk.git] / source / vslider.h
1 /* $Id$
2
3 This file is part of libmspgltk
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GLTK_VSLIDER_H_
9 #define MSP_GLTK_VSLIDER_H_
10
11 #include "slider.h"
12
13 namespace Msp {
14 namespace GLtk {
15
16 class VSlider: public Slider
17 {
18 private:
19         bool dragging;
20         int drag_start_y;
21         double drag_start_value;
22
23 public:
24         VSlider(const Resources &);
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 const char *get_class() const { return "vslider"; }
30         virtual void render_special(const Part &) const;
31         unsigned get_slider_height() const;
32 };
33
34 } // namespace GLtk
35 } // namespace Msp
36
37 #endif