18 #ifndef _ANDROID_NATIVE_APP_GLUE_H
19 #define _ANDROID_NATIVE_APP_GLUE_H
25 #include <android/configuration.h>
26 #include <android/looper.h>
27 #include <android/native_activity.h>
117 void (*onAppCmd)(
struct android_app* app, int32_t cmd);
123 int32_t (*onInputEvent)(
struct android_app* app, AInputEvent* event);
126 ANativeActivity* activity;
129 AConfiguration* config;
140 size_t savedStateSize;
147 AInputQueue* inputQueue;
150 ANativeWindow* window;
162 int destroyRequested;
167 pthread_mutex_t mutex;
182 AInputQueue* pendingInputQueue;
183 ANativeWindow* pendingWindow;
184 ARect pendingContentRect;
218 APP_CMD_INPUT_CHANGED,
239 APP_CMD_WINDOW_RESIZED,
246 APP_CMD_WINDOW_REDRAW_NEEDED,
253 APP_CMD_CONTENT_RECT_CHANGED,
259 APP_CMD_GAINED_FOCUS,
270 APP_CMD_CONFIG_CHANGED,
Definition: android_native_app_glue.h:111
Definition: android_native_app_glue.h:90