summaryrefslogtreecommitdiff
path: root/FL/Fl_Widget.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-26 15:33:22 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-26 15:33:22 +0000
commite8818e968cea0d05cd7aa27553a964c16813e422 (patch)
treeb549d41e403c8b8c8bd4ed5d3b77681734192e16 /FL/Fl_Widget.H
parent20ed92fca49784ed1af09d4b2b81b05a1aa8b2ea (diff)
Android: Widgets can now request the on-screen keyboard when they get focus. This may fail if visible_focus is disabled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Widget.H')
-rw-r--r--FL/Fl_Widget.H5
1 files changed, 5 insertions, 0 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H
index 60beafcd2..71f6c21d0 100644
--- a/FL/Fl_Widget.H
+++ b/FL/Fl_Widget.H
@@ -23,6 +23,7 @@
#define Fl_Widget_H
#include "Enumerations.H"
+#include "Fl.H"
class Fl_Widget;
class Fl_Window;
@@ -70,6 +71,7 @@ struct FL_EXPORT Fl_Label {
};
+
/** Fl_Widget is the base class for all widgets in FLTK.
You can't create one of these because the constructor is not public.
@@ -84,6 +86,7 @@ struct FL_EXPORT Fl_Label {
*/
class FL_EXPORT Fl_Widget {
friend class Fl_Group;
+ friend void Fl::focus(Fl_Widget*);
Fl_Group* parent_;
Fl_Callback* callback_;
@@ -158,6 +161,8 @@ protected:
FULLSCREEN = 1<<18, ///< a fullscreen window (Fl_Window)
MAC_USE_ACCENTS_MENU = 1<<19, ///< On the Mac OS platform, pressing and holding a key on the keyboard opens an accented-character menu window (Fl_Input_, Fl_Text_Editor)
// (space for more flags)
+ NEEDS_KEYBOARD = 1<<20, ///< set this on touch screen devices if a widget needs a keyboard when it gets Focus. @see Fl_Screen_Driver::request_keyboard()
+ // a tiny bit more space for new flags...
USERFLAG3 = 1<<29, ///< reserved for 3rd party extensions
USERFLAG2 = 1<<30, ///< reserved for 3rd party extensions
USERFLAG1 = 1<<31 ///< reserved for 3rd party extensions