From 626ecbfca04e95bcb42390827112b2d7de1c903f Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 7 Mar 2018 23:01:50 +0000 Subject: 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 --- FL/Enumerations.H | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'FL') 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 */ -- cgit v1.2.3