]> git.tdb.fi Git - libs/gltk.git/blob - source/vslider.h
Implement autosize() method for most widgets
[libs/gltk.git] / source / vslider.h
1 /* $Id$
2
3 This file is part of libmspgltk
4 Copyright © 2007, 2010-2011  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();
23
24         virtual const char *get_class() const { return "vslider"; }
25
26         virtual void autosize();
27
28 private:
29         virtual void render_special(const Part &) const;
30
31 public:
32         virtual void button_press(int, int, unsigned);
33         virtual void button_release(int, int, unsigned);
34         virtual void pointer_motion(int, int);
35 private:
36         virtual void on_geometry_change();
37         virtual void on_style_change();
38 };
39
40 } // namespace GLtk
41 } // namespace Msp
42
43 #endif