]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.h
Rename the basic skin to encourage reusability
[libs/gltk.git] / source / dropdown.h
index d1a2609772fbe85047664f33a599c9c9d008d009..1ff69be7c6150354983a736e64496b2e389f33fb 100644 (file)
@@ -29,7 +29,7 @@ public:
 
 private:
        List *list;
-       std::string text;
+       bool dropped;
        bool list_active;
 
 public:
@@ -39,12 +39,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;