]> 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 edcec3395a8f18e3255b6023f6ebcce5620f1757..770cc2f4517366a0b777d3e33df26f7f86b1a31f 100644 (file)
@@ -36,6 +36,7 @@ private:
        int sel_index;
        unsigned first;
        unsigned n_visible;
+       unsigned row_height;
 
        const Part *items_part;
 
@@ -46,11 +47,15 @@ public:
        sigc::signal<void, unsigned, const std::string &> signal_item_selected;
 
        List(const Resources &);
+       ~List();
+
        void append(const std::string &);
        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; }