YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部 类 命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 组 页
android_app结构体 参考

#include <android_native_app_glue.h>

android_app 的协作图:

Public 属性

void * userData
 
void(* onAppCmd )(struct android_app *app, int32_t cmd)
 
int32_t(* onInputEvent )(struct android_app *app, AInputEvent *event)
 
ANativeActivity * activity
 
AConfiguration * config
 
void * savedState
 
size_t savedStateSize
 
ALooper * looper
 
AInputQueue * inputQueue
 
ANativeWindow * window
 
ARect contentRect
 
int activityState
 
int destroyRequested
 
pthread_mutex_t mutex
 
pthread_cond_t cond
 
int msgread
 
int msgwrite
 
pthread_t thread
 
struct android_poll_source cmdPollSource
 
struct android_poll_source inputPollSource
 
int running
 
int stateSaved
 
int destroyed
 
int redrawNeeded
 
AInputQueue * pendingInputQueue
 
ANativeWindow * pendingWindow
 
ARect pendingContentRect
 

详细描述

This is the interface for the standard glue code of a threaded application. In this model, the application's code is running in its own thread separate from the main thread of the process. It is not required that this thread be associated with the Java VM, although it will need to be in order to make JNI calls any Java objects.

在文件 android_native_app_glue.h 第 111 行定义.

类成员变量说明

ANativeActivity* android_app::activity

在文件 android_native_app_glue.h 第 126 行定义.

int android_app::activityState

在文件 android_native_app_glue.h 第 158 行定义.

struct android_poll_source android_app::cmdPollSource

在文件 android_native_app_glue.h 第 175 行定义.

pthread_cond_t android_app::cond

在文件 android_native_app_glue.h 第 168 行定义.

AConfiguration* android_app::config

在文件 android_native_app_glue.h 第 129 行定义.

ARect android_app::contentRect

在文件 android_native_app_glue.h 第 154 行定义.

int android_app::destroyed

在文件 android_native_app_glue.h 第 180 行定义.

int android_app::destroyRequested

在文件 android_native_app_glue.h 第 162 行定义.

struct android_poll_source android_app::inputPollSource

在文件 android_native_app_glue.h 第 176 行定义.

AInputQueue* android_app::inputQueue

在文件 android_native_app_glue.h 第 147 行定义.

ALooper* android_app::looper

在文件 android_native_app_glue.h 第 143 行定义.

int android_app::msgread

在文件 android_native_app_glue.h 第 170 行定义.

int android_app::msgwrite

在文件 android_native_app_glue.h 第 171 行定义.

pthread_mutex_t android_app::mutex

在文件 android_native_app_glue.h 第 167 行定义.

void(* android_app::onAppCmd)(struct android_app *app, int32_t cmd)

在文件 android_native_app_glue.h 第 117 行定义.

int32_t(* android_app::onInputEvent)(struct android_app *app, AInputEvent *event)

在文件 android_native_app_glue.h 第 123 行定义.

ARect android_app::pendingContentRect

在文件 android_native_app_glue.h 第 184 行定义.

AInputQueue* android_app::pendingInputQueue

在文件 android_native_app_glue.h 第 182 行定义.

ANativeWindow* android_app::pendingWindow

在文件 android_native_app_glue.h 第 183 行定义.

int android_app::redrawNeeded

在文件 android_native_app_glue.h 第 181 行定义.

int android_app::running

在文件 android_native_app_glue.h 第 178 行定义.

void* android_app::savedState

在文件 android_native_app_glue.h 第 139 行定义.

size_t android_app::savedStateSize

在文件 android_native_app_glue.h 第 140 行定义.

int android_app::stateSaved

在文件 android_native_app_glue.h 第 179 行定义.

pthread_t android_app::thread

在文件 android_native_app_glue.h 第 173 行定义.

void* android_app::userData

在文件 android_native_app_glue.h 第 114 行定义.

ANativeWindow* android_app::window

在文件 android_native_app_glue.h 第 150 行定义.


该结构体的文档由以下文件生成: