]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/vslider.h
Move some more common slider code to the base class
[libs/gltk.git] / source / vslider.h
index 2d2ac58c890ef5cd64fd72823f3bddd282ee2c44..987d83a1726d98440293af552b580ad7c6b56860 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_VSLIDER_H_
 #define MSP_GLTK_VSLIDER_H_
 
@@ -15,18 +8,20 @@ namespace GLtk {
 
 class VSlider: public Slider
 {
+public:
+       VSlider();
+
+       virtual const char *get_class() const { return "vslider"; }
+
 private:
-       unsigned slider_size;
+       virtual void autosize_special(const Part &, Geometry &) const;
+       virtual void rebuild_special(const Part &);
 
 public:
-       VSlider();
        virtual void button_press(int, int, unsigned);
        virtual void button_release(int, int, unsigned);
        virtual void pointer_motion(int, int);
 private:
-       virtual const char *get_class() const { return "vslider"; }
-       virtual void render_special(const Part &) const;
-
        virtual void on_geometry_change();
        virtual void on_style_change();
 };