]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/list.h
Make the List in Dropdown a normal member instead of pointer
[libs/gltk.git] / source / list.h
index a13de52db627468bca5da9d9fd0c35c7996f13ef..770cc2f4517366a0b777d3e33df26f7f86b1a31f 100644 (file)
@@ -36,6 +36,7 @@ private:
        int sel_index;
        unsigned first;
        unsigned n_visible;
+       unsigned row_height;
 
        const Part *items_part;
 
@@ -52,6 +53,7 @@ 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;