X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=3653970a2f470e4a03ad6ff66af225802eafeb93;hb=033732b500a35f3737bad515349d884cb3f123f0;hp=64db74e85a15d4b7f4a06fe5577a29140048966d;hpb=73afd124ab87e8bace98db55517a56c797a9b8c7;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index 64db74e..3653970 100644 --- a/source/widget.h +++ b/source/widget.h @@ -41,6 +41,7 @@ public: }; sigc::signal signal_visibility_changed; + sigc::signal signal_autosize_changed; sigc::signal signal_request_focus; sigc::signal signal_grab_pointer; sigc::signal signal_ungrab_pointer; @@ -66,7 +67,7 @@ public: void set_position(int, int); void set_size(unsigned, unsigned); - virtual void autosize() { } + virtual void autosize(); void set_geometry(const Geometry &); const Geometry &get_geometry() const { return geom; } @@ -76,8 +77,9 @@ protected: calling this function with a non-null parameter. */ void set_parent(Container *); - public: + Container *get_parent() const { return parent; } + /** Sets the widget style. The final style name is constructed by concatenating the widget class and the style name with a dash.