diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-07 23:01:50 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-07 23:01:50 +0000 |
| commit | 626ecbfca04e95bcb42390827112b2d7de1c903f (patch) | |
| tree | 873aab5aa0fddb698b9f510d7fe302a886951fab /FL/Enumerations.H | |
| parent | 2e5b983f4b3da87bf28319fe7ab99bb6206f0411 (diff) | |
Android: specific event for Android. Use Fl::add_system_handler() and Fl::event(), for example: FL_ANDROID_EVENT_LOW_MEMORY
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Enumerations.H')
| -rw-r--r-- | FL/Enumerations.H | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 2a1908f8e..d97298073 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -406,6 +406,30 @@ enum Fl_Event { // events FL_ZOOM_GESTURE = 26 // DEV NOTE: Keep this list in sync with FL/names.h + +#ifdef __ANDROID__ + // These events are specific to the Android OS driver system. They can + // be read by adding a callback via Fl::add_system_handler() and reading Fl::event() + // Dont's change the order of these enums! See Fl_Android_Application.H . + , FL_ANDROID_EVENTS = 0x00010000, + FL_ANDROID_EVENT_INPUT_CHANGED, + FL_ANDROID_EVENT_INIT_WINDOW, + FL_ANDROID_EVENT_TERM_WINDOW, + FL_ANDROID_EVENT_WINDOW_RESIZED, + FL_ANDROID_EVENT_WINDOW_REDRAW_NEEDED, + FL_ANDROID_EVENT_CONTENT_RECT_CHANGED, + FL_ANDROID_EVENT_GAINED_FOCUS, + FL_ANDROID_EVENT_LOST_FOCUS, + FL_ANDROID_EVENT_CONFIG_CHANGED, + FL_ANDROID_EVENT_LOW_MEMORY, + FL_ANDROID_EVENT_START, + FL_ANDROID_EVENT_RESUME, + FL_ANDROID_EVENT_SAVE_STATE, + FL_ANDROID_EVENT_PAUSE, + FL_ANDROID_EVENT_STOP, + FL_ANDROID_EVENT_DESTROY +#endif + }; /** \name When Conditions */ |
