X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flayout.h;h=7ae3907c772d740f0ad1ab3e28386f5bc0042213;hb=a6733b168083926ccc11eb3896642348b13817a2;hp=230365182e1d84a881bc363a48487234215fd3a7;hpb=b15a68afd1d1c36cb953bc29bf234413991c911d;p=libs%2Fgltk.git diff --git a/source/layout.h b/source/layout.h index 2303651..7ae3907 100644 --- a/source/layout.h +++ b/source/layout.h @@ -100,7 +100,7 @@ protected: struct Slot: public sigc::trackable { Layout &layout; - unsigned index; + int index; Widget &widget; Geometry autosize_geom; Geometry geom; @@ -112,6 +112,7 @@ protected: virtual ~Slot() { } void autosize_changed(); + void visibility_changed(bool); }; enum SolveMode @@ -125,6 +126,7 @@ protected: Container *container; std::list slots; + unsigned n_active_slots; Sides margin; unsigned row_spacing; unsigned col_spacing; @@ -146,6 +148,7 @@ public: void remove_widget(Widget &); protected: virtual Slot *create_slot(Widget &); + void update_slot_indices(); Slot &get_slot_for_widget(Widget &); static ConstraintType complement(ConstraintType); void create_constraint(Widget &, ConstraintType, Widget &, int);