]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/toggle.h
Add Dropdown widget
[libs/gltk.git] / source / toggle.h
index 305c3ca0617f4d2707c509958a3fe72a07469456..6e3d6326fb0388784e7f0b50c6e46329b8be5c98 100644 (file)
@@ -25,10 +25,13 @@ public:
        public:
                Loader(Toggle &);
                Toggle &get_object() const;
+       private:
+               virtual void finish();
        };
 
 private:
        std::string text;
+       bool pressed;
        bool value;
 
 public:
@@ -36,8 +39,10 @@ public:
 
        Toggle(const Resources &);
 
+       void set_value(bool);
        bool get_value() const { return value; }
 
+       virtual void button_press(int, int, unsigned);
        virtual void button_release(int, int, unsigned);
        virtual void pointer_enter();
        virtual void pointer_leave();