]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/widget.h
Add Widget::focusable flag
[libs/gltk.git] / source / widget.h
index 69adf9ca52b0fce6b0aaa64fc703badaafbe61fb..2fdc68c34c778e34f4ebf72ba237921eeb2f54fb 100644 (file)
@@ -53,6 +53,7 @@ protected:
        const Style *style;
        State state;
        bool visible;
+       bool focusable;
        Container *parent;
        std::string tooltip;
 
@@ -78,6 +79,8 @@ public:
 
        void set_visible(bool);
        bool is_visible() const { return visible; }
+       void set_focusable(bool);
+       bool is_focusable() const { return focusable; }
        void set_focus();
 
        void render() const;