X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flayout.h;h=cbd763e9e5337dc7a6395d7d0b3a860c6d9ad7e1;hb=e291dcf478052c771d85089409f9bc22a4c8ab93;hp=cf63538413e6465c967f93063ee394e8fc09f07d;hpb=76a7cd9ed443c1a6451e6fab98f428f7cce48eed;p=libs%2Fgltk.git diff --git a/source/layout.h b/source/layout.h index cf63538..cbd763e 100644 --- a/source/layout.h +++ b/source/layout.h @@ -113,6 +113,12 @@ protected: void autosize_changed(); }; + enum SolveMode + { + UPDATE, + AUTOSIZE + }; + class LinearProgram; struct Pointers; @@ -121,6 +127,7 @@ protected: Sides margin; unsigned row_spacing; unsigned col_spacing; + Geometry autosize_geom; static Pointers pointers[2]; @@ -146,9 +153,10 @@ public: void set_expand(Widget &, bool, bool); void update(); + void autosize(); protected: - void solve_constraints(int); + void solve_constraints(int, SolveMode); }; } // namespace GLtk