private:
List *list;
- std::string text;
bool dropped;
bool list_active;
~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;