]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/list.h
Cache widget parts in meshes
[libs/gltk.git] / source / list.h
index b3b3a88704207470ef3825b16ca30c9161644338..2970bb454b19425a5a3626de1c025facd8ccebc3 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007-2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_LIST_H_
 #define MSP_GLTK_LIST_H_
 
@@ -56,6 +49,9 @@ public:
        void insert(unsigned, const std::string &);
        void remove(unsigned);
        void clear();
+private:
+       void items_changed();
+public:
        unsigned get_n_items() const { return items.size(); }
 
        void set_selected_index(int);
@@ -63,6 +59,7 @@ public:
        int get_selected_index() const { return sel_index; }
 
 private:
+       virtual void rebuild_special(const Part &, CachedPart &);
        virtual void render_special(const Part &) const;
 
 public: