]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/vslider.h
Make autosize_special const and add a const autosize overload
[libs/gltk.git] / source / vslider.h
index 2696051b7f7d47ee28989fd527152179b558135e..ee12689ff0afb8b152e89ac10cae237b3c6a1b7f 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_
 
@@ -16,19 +9,24 @@ namespace GLtk {
 class VSlider: public Slider
 {
 private:
-       bool dragging;
-       int drag_start_y;
-       double drag_start_value;
+       unsigned slider_size;
+
+public:
+       VSlider();
+
+       virtual const char *get_class() const { return "vslider"; }
+
+private:
+       virtual void autosize_special(const Part &, Geometry &) const;
+       virtual void rebuild_special(const Part &);
 
 public:
-       VSlider(const Resources &);
        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;
-       unsigned get_slider_height() const;
+       virtual void on_geometry_change();
+       virtual void on_style_change();
 };
 
 } // namespace GLtk