]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/widget.h
Support loading Panels from datafiles
[libs/gltk.git] / source / widget.h
index 79187f3b5e864bf40b77fdab827b93e676c3d38a..557df434adcd34f98d858324ab753e8271b9a1a5 100644 (file)
@@ -22,6 +22,7 @@ public:
 
        public:
                Loader(Widget &);
+               Widget &get_object() const { return wdg; }
        private:
                void position(int, int);
                void size(unsigned, unsigned);
@@ -34,6 +35,7 @@ public:
        void set_geometry(const Geometry &);
        void set_style(const std::string &);
        const Geometry &get_geometry() const { return geom; }
+       bool is_visible() const { return visible; }
        void render() const;
        virtual void button_press(int, int, unsigned) { }
        virtual void button_release(int, int, unsigned) { }
@@ -50,6 +52,7 @@ protected:
        std::string style_name;
        const Style *style;
        State state;
+       bool visible;
 
        Widget(const Resources &);
        virtual const char *get_class() const { return "widget"; }