X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farrangement.h;h=f323a9b232da37389f4285de968380fe427f8e54;hb=f0b600c3b1739f7e088da6ab8eb7c2e67adf592c;hp=ed1798b8a74856fcd18d2fc96bb9a9d12051a509;hpb=304500a51a1a9d00e3c84ed2a6ffda0f829445b4;p=libs%2Fgltk.git diff --git a/source/arrangement.h b/source/arrangement.h index ed1798b..f323a9b 100644 --- a/source/arrangement.h +++ b/source/arrangement.h @@ -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