X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.h;h=c9291f91e8d8c39929d0eca0b3bb829ca8e449a2;hb=9b29612d1cde85fee9b3f011e86a5cabe5dbcce3;hp=d1a2609772fbe85047664f33a599c9c9d008d009;hpb=af13797a82b242a3cd8fdd405b057a9e311631ac;p=libs%2Fgltk.git diff --git a/source/dropdown.h b/source/dropdown.h index d1a2609..c9291f9 100644 --- a/source/dropdown.h +++ b/source/dropdown.h @@ -30,6 +30,7 @@ public: private: List *list; std::string text; + bool dropped; bool list_active; public: @@ -39,12 +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); - virtual void pointer_enter(); - virtual void pointer_leave(); + private: virtual const char *get_class() const { return "dropdown"; } virtual void render_special(const Part &) const;