X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flayout.h;h=141a15cdb317d7920fd394778312f28002228b24;hb=f0b600c3b1739f7e088da6ab8eb7c2e67adf592c;hp=9c4e2a07e6525b73e15783c0df17d397f739ad1d;hpb=5dfee9d7239278cbedae484604056aa03f84cd40;p=libs%2Fgltk.git diff --git a/source/layout.h b/source/layout.h index 9c4e2a0..141a15c 100644 --- a/source/layout.h +++ b/source/layout.h @@ -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 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 &);