]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/widget.h
Improve widget part caching
[libs/gltk.git] / source / widget.h
index b00849c1598873a6ae7ecdc0e76ff9a036539d76..50e3279e3b5c3d753373246d88d13f7e3a0800e0 100644 (file)
@@ -50,7 +50,7 @@ protected:
        bool focusable;
        Container *parent;
        std::string tooltip;
-       std::list<CachedPart> cached_parts;
+       PartCache part_cache;
 
        Widget();
 public:
@@ -99,7 +99,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;