]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/slider.h
Rearrange members
[libs/gltk.git] / source / slider.h
index c4326e3eac0edf5571ac29b96ee82adb3ba63abc..edaa5d8ad932bea7b5b64891d361f81c138754f7 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Copyright © 2007, 2010-2011  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -29,6 +29,8 @@ public:
                Slider &get_object() const;
        };
 
+       sigc::signal<void, double> signal_value_changed;
+
 protected:
        double min, max;
        double value;
@@ -39,16 +41,14 @@ protected:
        double drag_start_value;
        unsigned drag_area_size;
 
-public:
-       sigc::signal<void, double> signal_value_changed;
-
-protected:
        Slider();
+
 public:
        void set_value(double);
        void set_range(double, double);
        void set_step(double);
        double get_value() const { return value; }
+
 protected:
        void start_drag(int);
        void drag(int);