X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=5522ba340e60a580e21497feeba50daee03cd632;hb=43ac7c4514658754d09552463425bcd344fb9ded;hp=64db74e85a15d4b7f4a06fe5577a29140048966d;hpb=73afd124ab87e8bace98db55517a56c797a9b8c7;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index 64db74e..5522ba3 100644 --- a/source/widget.h +++ b/source/widget.h @@ -66,7 +66,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 +76,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.