]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/arrangement.h
Implement mouse wheel scrolling in List
[libs/gltk.git] / source / arrangement.h
index ed1798b8a74856fcd18d2fc96bb9a9d12051a509..f323a9b232da37389f4285de968380fe427f8e54 100644 (file)
@@ -38,6 +38,7 @@ protected:
                bool empty() { return widgets.empty(); }
                void clear();
                void add(Widget &, bool);
+               void align();
        };
 
        Layout &layout;
@@ -58,6 +59,9 @@ protected:
        const Edge &get_edge(Side s) const { return edges[s]; }
        void add_constraint(Widget &, Layout::ConstraintType, Side);
        void add_constraint(Widget &, Layout::ConstraintType, const Edge &);
+
+       static Layout::ConstraintType get_order_constraint(Side, bool);
+       static Layout::ConstraintType get_align_constraint(Side);
 };
 
 } // namespace GLtk