]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/layout.h
Implement mouse wheel scrolling in List
[libs/gltk.git] / source / layout.h
index 9c4e2a07e6525b73e15783c0df17d397f739ad1d..141a15cdb317d7920fd394778312f28002228b24 100644 (file)
@@ -153,6 +153,7 @@ private:
                Packing horiz_pack;
                Packing vert_pack;
                bool ghost;
+               bool floating;
 
                Slot(Layout &, Widget &);
 
@@ -172,7 +173,7 @@ private:
        Container *container;
        std::list<Slot *> slots;
        unsigned n_active_slots;
-       unsigned n_slack_constraints[2];
+       unsigned n_slack_vars[2];
        Sides margin;
        unsigned row_spacing;
        unsigned col_spacing;
@@ -229,6 +230,8 @@ public:
        /// Sets a widget as a ghost, taking up space even if it is hidden.
        void set_ghost(Widget &, bool);
 
+       void set_floating(Widget &, bool);
+
        void update();
        void autosize(Geometry &);