]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/list.h
Add Changelog.txt
[libs/gltk.git] / source / list.h
index 77d7e9f49166ac53e62c5a06785e0e14bd12ed28..770cc2f4517366a0b777d3e33df26f7f86b1a31f 100644 (file)
@@ -36,6 +36,7 @@ private:
        int sel_index;
        unsigned first;
        unsigned n_visible;
+       unsigned row_height;
 
        const Part *items_part;
 
@@ -52,7 +53,9 @@ public:
        void insert(unsigned, const std::string &);
        void remove(unsigned);
        void clear();
+       unsigned get_n_items() const { return items.size(); }
 
+       void set_selected_index(int);
        const std::string &get_selected() const;
        int get_selected_index() const { return sel_index; }