]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.h
Cache widget parts in meshes
[libs/gltk.git] / source / part.h
index b4ada58e96bdcc8862b3b76495cdcf231fedbd32..c35969dd4276bd206a88b97f5cb0dfcea4aa2e83 100644 (file)
@@ -9,6 +9,7 @@
 namespace Msp {
 namespace GLtk {
 
+class CachedPart;
 class Graphic;
 class Resources;
 
@@ -45,7 +46,7 @@ public:
        const Geometry &get_geometry() const { return geom; }
        const Sides &get_margin() const { return margin; }
        const Alignment &get_alignment() const { return align; }
-       void render(const Geometry &, State) const;
+       void build(const Geometry &, State, CachedPart &) const;
 };
 
 } // namespace GLtk