diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-09 21:21:23 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-09 21:21:23 +0000 |
| commit | 7b3e9347ba105aa2a2015de5a4b457ebb55043fa (patch) | |
| tree | f4fab0c173bcc8fb1eb0837e10c37741d9c0d20a /src/drivers/Android/Fl_Android_Application.H | |
| parent | 7f78b1ef1468bb8242fb7fb37e3f27d0a8052ce1 (diff) | |
Android: move Android specific platform events to FL/android.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Application.H')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Application.H | 96 |
1 files changed, 8 insertions, 88 deletions
diff --git a/src/drivers/Android/Fl_Android_Application.H b/src/drivers/Android/Fl_Android_Application.H index 69ba524c0..dbc0a4dd9 100644 --- a/src/drivers/Android/Fl_Android_Application.H +++ b/src/drivers/Android/Fl_Android_Application.H @@ -133,105 +133,25 @@ public: LOOPER_ID_USER = 3, }; + /** + * @see android.H Fl_Android_Platform_Event + */ enum { - /** - * Command from main thread: the AInputQueue has changed. Upon processing - * this command, android_app->inputQueue will be updated to the new queue - * (or NULL). - */ APP_CMD_INPUT_CHANGED, - - /** - * Command from main thread: a new ANativeWindow is ready for use. Upon - * receiving this command, android_app->window will contain the new window - * surface. - */ APP_CMD_INIT_WINDOW, - - /** - * Command from main thread: the existing ANativeWindow needs to be - * terminated. Upon receiving this command, android_app->window still - * contains the existing window; after calling android_app_exec_cmd - * it will be set to NULL. - */ APP_CMD_TERM_WINDOW, - - /** - * Command from main thread: the current ANativeWindow has been resized. - * Please redraw with its new size. - */ APP_CMD_WINDOW_RESIZED, - - /** - * Command from main thread: the system needs that the current ANativeWindow - * be redrawn. You should redraw the window before handing this to - * android_app_exec_cmd() in order to avoid transient drawing glitches. - */ APP_CMD_WINDOW_REDRAW_NEEDED, - - /** - * Command from main thread: the content area of the window has changed, - * such as from the soft input window being shown or hidden. You can - * find the new content rect in android_app::contentRect. - */ APP_CMD_CONTENT_RECT_CHANGED, - - /** - * Command from main thread: the app's activity window has gained - * input focus. - */ APP_CMD_GAINED_FOCUS, - - /** - * Command from main thread: the app's activity window has lost - * input focus. - */ APP_CMD_LOST_FOCUS, - - /** - * Command from main thread: the current device configuration has changed. - */ APP_CMD_CONFIG_CHANGED, - - /** - * Command from main thread: the system is running low on memory. - * Try to reduce your memory use. - */ APP_CMD_LOW_MEMORY, - - /** - * Command from main thread: the app's activity has been started. - */ APP_CMD_START, - - /** - * Command from main thread: the app's activity has been resumed. - */ APP_CMD_RESUME, - - /** - * Command from main thread: the app should generate a new saved state - * for itself, to restore from later if needed. If you have saved state, - * allocate it with malloc and place it in android_app.savedState with - * the size in android_app.savedStateSize. The will be freed for you - * later. - */ APP_CMD_SAVE_STATE, - - /** - * Command from main thread: the app's activity has been paused. - */ APP_CMD_PAUSE, - - /** - * Command from main thread: the app's activity has been stopped. - */ APP_CMD_STOP, - - /** - * Command from main thread: the app's activity is being destroyed, - * and waiting for the app thread to clean up and exit before proceeding. - */ APP_CMD_DESTROY, }; @@ -264,8 +184,8 @@ public: static inline ANativeWindow *native_window() { return pNativeWindow; } static inline ANativeWindow_Buffer &graphics_buffer() { return pApplicationWindowBuffer; } static int destroy_requested() { return pDestroyRequested; } - static void set_on_app_cmd(void (*cmd)(int32_t cmd)) { pOnAppCmd = cmd; } - static void set_on_input_event(int32_t (*cmd)(AInputEvent* event)) { pOnInputEvent = cmd; } + //static void set_on_app_cmd(void (*cmd)(int32_t cmd)) { pOnAppCmd = cmd; } + //static void set_on_input_event(int32_t (*cmd)(AInputEvent* event)) { pOnInputEvent = cmd; } static bool copy_screen(); @@ -287,7 +207,7 @@ protected: static void *pSavedState; static size_t pSavedStateSize; static ALooper *pMsgPipeLooper; - static ALooper *pRedrawLooper; + //static ALooper *pRedrawLooper; static AInputQueue *pInputQueue; static ANativeWindow *pNativeWindow; static ANativeWindow_Buffer pNativeWindowBuffer; @@ -308,10 +228,10 @@ protected: static int pRunning; static int pStateSaved; static int pDestroyed; - static int pRedrawNeeded; + //static int pRedrawNeeded; static AInputQueue* pPendingInputQueue; static ANativeWindow* pPendingWindow; - static ARect pPendingContentRect; + //static ARect pPendingContentRect; }; |
