X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=5c81b8056e6f409641095b2303513a95eff4d3ae;hb=a778810b6fa6feff8aff06bdf632623e7923537a;hp=b00849c1598873a6ae7ecdc0e76ff9a036539d76;hpb=060b85ffc3d92b94b444b29ee5b26a6e74636235;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index b00849c..5c81b80 100644 --- a/source/widget.h +++ b/source/widget.h @@ -50,7 +50,7 @@ protected: bool focusable; Container *parent; std::string tooltip; - std::list cached_parts; + PartCache part_cache; Widget(); public: @@ -61,7 +61,10 @@ public: void set_position(int, int); void set_size(unsigned, unsigned); - virtual void autosize(); + void autosize(); +protected: + virtual void autosize_special(const Part &, Geometry &) { } +public: void set_geometry(const Geometry &); const Geometry &get_geometry() const { return geom; } @@ -99,7 +102,7 @@ protected: void set_state(State, State); void rebuild(); - virtual void rebuild_special(const Part &, CachedPart &) { } + virtual void rebuild_special(const Part &); public: void render(GL::Renderer &) const;