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;
224 APP_CMD_INPUT_CHANGED,
244 APP_CMD_WINDOW_RESIZED,
251 APP_CMD_WINDOW_REDRAW_NEEDED,
258 APP_CMD_CONTENT_RECT_CHANGED,
264 APP_CMD_GAINED_FOCUS,
275 APP_CMD_CONFIG_CHANGED,
345 void ANativeActivity_onCreate(ANativeActivity *,
void *,
size_t);