mirror of https://github.com/fltk/fltk
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
This commit is contained in:
parent
3e0bb410f8
commit
3ce67eb594
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue