]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.h
Add List::set_selected_index
[libs/gltk.git] / source / dropdown.h
index 49088e20f2dc8e01e6567f7b6eb69618f1febc0a..c9291f91e8d8c39929d0eca0b3bb829ca8e449a2 100644 (file)
@@ -40,10 +40,18 @@ public:
        ~Dropdown();
 
        void append(const std::string &);
+       void insert(unsigned, const std::string &);
+       void remove(unsigned);
+       void clear();
+
+       void set_selected_index(int);
+       const std::string &get_selected() const;
+       int get_selected_index() const;
 
        virtual void button_press(int, int, unsigned);
        virtual void button_release(int, int, unsigned);
        virtual void pointer_motion(int, int);
+
 private:
        virtual const char *get_class() const { return "dropdown"; }
        virtual void render_special(const Part &) const;