|
static void | sk_app::config_resource_mgr (JNIEnv *env, jobject assetManager) |
|
static const std::unordered_map< int, skui::Key > | sk_app::ANDROID_TO_WINDOW_KEYMAP ({ {AKEYCODE_SOFT_LEFT, skui::Key::kLeft }, {AKEYCODE_SOFT_RIGHT, skui::Key::kRight} }) |
|
static const std::unordered_map< int, skui::InputState > | sk_app::ANDROID_TO_WINDOW_STATEMAP ({ {AMOTION_EVENT_ACTION_DOWN, skui::InputState::kDown }, {AMOTION_EVENT_ACTION_POINTER_DOWN, skui::InputState::kDown }, {AMOTION_EVENT_ACTION_UP, skui::InputState::kUp }, {AMOTION_EVENT_ACTION_POINTER_UP, skui::InputState::kUp }, {AMOTION_EVENT_ACTION_MOVE, skui::InputState::kMove }, {AMOTION_EVENT_ACTION_CANCEL, skui::InputState::kUp }, }) |
|
JNIEXPORT jlong JNICALL | sk_app::Java_org_skia_viewer_ViewerApplication_createNativeApp (JNIEnv *env, jobject application, jobject assetManager) |
|
JNIEXPORT void JNICALL | sk_app::Java_org_skia_viewer_ViewerApplication_destroyNativeApp (JNIEnv *env, jobject application, jlong handle) |
|
JNIEXPORT void JNICALL | sk_app::Java_org_skia_viewer_ViewerActivity_onSurfaceCreated (JNIEnv *env, jobject activity, jlong handle, jobject surface) |
|
JNIEXPORT void JNICALL | sk_app::Java_org_skia_viewer_ViewerActivity_onSurfaceChanged (JNIEnv *env, jobject activity, jlong handle, jobject surface) |
|
JNIEXPORT void JNICALL | sk_app::Java_org_skia_viewer_ViewerActivity_onSurfaceDestroyed (JNIEnv *env, jobject activity, jlong handle) |
|
JNIEXPORT void JNICALL | sk_app::Java_org_skia_viewer_ViewerActivity_onKeyPressed (JNIEnv *env, jobject activity, jlong handle, jint keycode) |
|
JNIEXPORT void JNICALL | sk_app::Java_org_skia_viewer_ViewerActivity_onTouched (JNIEnv *env, jobject activity, jlong handle, jint owner, jint state, jfloat x, jfloat y) |
|
JNIEXPORT void JNICALL | sk_app::Java_org_skia_viewer_ViewerActivity_onUIStateChanged (JNIEnv *env, jobject activity, jlong handle, jstring stateName, jstring stateValue) |
|