]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/vslider.h
Properly account for margins in sliders
[libs/gltk.git] / source / vslider.h
index 5c5e61f86959bdbd3fb0ef6c65479785876c0671..6086d3fcf3c6db791fa3ef6f4fa462b7accbdae5 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007, 2010-2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_VSLIDER_H_
 #define MSP_GLTK_VSLIDER_H_
 
@@ -16,7 +9,7 @@ namespace GLtk {
 class VSlider: public Slider
 {
 private:
-       unsigned slider_size;
+       unsigned total_margin;
 
 public:
        VSlider();
@@ -24,7 +17,8 @@ public:
        virtual const char *get_class() const { return "vslider"; }
 
 private:
-       virtual void render_special(const Part &) const;
+       virtual void autosize_special(const Part &, Geometry &) const;
+       virtual void rebuild_special(const Part &);
 
 public:
        virtual void button_press(int, int, unsigned);