X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=2fdc68c34c778e34f4ebf72ba237921eeb2f54fb;hb=531232cf05838b79c1f8f36c8103730e32dfa23d;hp=69adf9ca52b0fce6b0aaa64fc703badaafbe61fb;hpb=900becb7550d179d169e7d049b3aef5e0c9b7758;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index 69adf9c..2fdc68c 100644 --- a/source/widget.h +++ b/source/widget.h @@ -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;