summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2014-09-08 08:55:49 +0000
committerLauri Kasanen <cand@gmx.com>2014-09-08 08:55:49 +0000
commit3ce67eb59440f5719f472796f7c6fecd2ff47f1c (patch)
treee7771dd4f85a6f3de5436fc4dbf95ce20d0f8173 /FL
parent3e0bb410f85c68fe1d377865790deddef51da76c (diff)
Expose the INACTIVE flag in Fl_Widget similarly to other flags. STR #3122
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Widget.H12
1 files changed, 12 insertions, 0 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H
index 6f55652b4..f340ffb85 100644
--- a/FL/Fl_Widget.H
+++ b/FL/Fl_Widget.H
@@ -777,6 +777,18 @@ public:
*/
void clear_changed() {flags_ &= ~CHANGED;}
+ /** Marks the widget as inactive without sending events or changing focus.
+ This is mainly for specialized use, for normal cases you want deactivate().
+ \see deactivate()
+ */
+ void clear_active() {flags_ |= INACTIVE;}
+
+ /** Marks the widget as active without sending events or changing focus.
+ This is mainly for specialized use, for normal cases you want activate().
+ \see activate()
+ */
+ void set_active() {flags_ &= ~INACTIVE;}
+
/** Gives the widget the keyboard focus.
Tries to make this widget be the Fl::focus() widget, by first sending
it an FL_FOCUS event, and if it returns non-zero, setting