]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/toggle.h
Add UserInterface class
[libs/gltk.git] / source / toggle.h
index 305c3ca0617f4d2707c509958a3fe72a07469456..f01f84bd0ba632c8596f80d1fdbce5f66b0c2907 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,11 +39,11 @@ 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();
 private:
        virtual const char *get_class() const { return "toggle"; }
        virtual void render_special(const Part &) const;