]> git.tdb.fi Git - libs/gltk.git/blob - source/vslider.h
Pass coordinates relative to the receiving widget's geometry
[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         unsigned slider_size;
20
21 public:
22         VSlider(const Resources &);
23         virtual void button_press(int, int, unsigned);
24         virtual void button_release(int, int, unsigned);
25         virtual void pointer_motion(int, int);
26 private:
27         virtual const char *get_class() const { return "vslider"; }
28         virtual void render_special(const Part &) const;
29
30         virtual void on_geometry_change();
31         virtual void on_style_change();
32 };
33
34 } // namespace GLtk
35 } // namespace Msp
36
37 #endif