]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/hslider.h
Properly account for margins in sliders
[libs/gltk.git] / source / hslider.h
index a94e8bcaaca2bc914ea56bf492d060806e931ce2..0d840fe961525ccab760bb9c9e4210a5ca6636a9 100644 (file)
@@ -13,17 +13,16 @@ the current value of the widget.
 class HSlider: public Slider
 {
 private:
-       unsigned slider_size;
+       unsigned total_margin;
 
 public:
        HSlider();
 
        virtual const char *get_class() const { return "hslider"; }
 
-       virtual void autosize();
-
 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);