Flutter Engine
The Flutter Engine
|
Classes | |
class | Application |
class | CommandSet |
struct | Message |
struct | SkiaAndroidApp |
class | Window |
class | Window_android |
class | Window_ios |
class | Window_mac |
class | Window_unix |
class | Window_win |
Enumerations | |
enum | MessageType { kUndefined , kSurfaceCreated , kSurfaceChanged , kSurfaceDestroyed , kDestroyApp , kContentInvalidated , kKeyPressed , kTouched , kUIStateChanged } |
Functions | |
static void | config_resource_mgr (JNIEnv *env, jobject assetManager) |
static const std::unordered_map< int, skui::Key > | ANDROID_TO_WINDOW_KEYMAP ({ {AKEYCODE_SOFT_LEFT, skui::Key::kLeft }, {AKEYCODE_SOFT_RIGHT, skui::Key::kRight} }) |
static const std::unordered_map< int, skui::InputState > | 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 | Java_org_skia_viewer_ViewerApplication_createNativeApp (JNIEnv *env, jobject application, jobject assetManager) |
JNIEXPORT void JNICALL | Java_org_skia_viewer_ViewerApplication_destroyNativeApp (JNIEnv *env, jobject application, jlong handle) |
JNIEXPORT void JNICALL | Java_org_skia_viewer_ViewerActivity_onSurfaceCreated (JNIEnv *env, jobject activity, jlong handle, jobject surface) |
JNIEXPORT void JNICALL | Java_org_skia_viewer_ViewerActivity_onSurfaceChanged (JNIEnv *env, jobject activity, jlong handle, jobject surface) |
JNIEXPORT void JNICALL | Java_org_skia_viewer_ViewerActivity_onSurfaceDestroyed (JNIEnv *env, jobject activity, jlong handle) |
JNIEXPORT void JNICALL | Java_org_skia_viewer_ViewerActivity_onKeyPressed (JNIEnv *env, jobject activity, jlong handle, jint keycode) |
JNIEXPORT void JNICALL | Java_org_skia_viewer_ViewerActivity_onTouched (JNIEnv *env, jobject activity, jlong handle, jint owner, jint state, jfloat x, jfloat y) |
JNIEXPORT void JNICALL | Java_org_skia_viewer_ViewerActivity_onUIStateChanged (JNIEnv *env, jobject activity, jlong handle, jstring stateName, jstring stateValue) |
static skui::Key | get_key (KeySym keysym) |
static skui::ModifierKey | get_modifiers (const XEvent &event) |
LRESULT CALLBACK | WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
static skui::Key | get_key (WPARAM vk) |
static skui::ModifierKey | get_modifiers (UINT message, WPARAM wParam, LPARAM lParam) |
Variables | |
static const int | LOOPER_ID_MESSAGEPIPE = 1 |
const long | kEventMask |
static int | gWindowX = CW_USEDEFAULT |
static int | gWindowY = 0 |
static int | gWindowWidth = CW_USEDEFAULT |
static int | gWindowHeight = 0 |
enum sk_app::MessageType |
Enumerator | |
---|---|
kUndefined | |
kSurfaceCreated | |
kSurfaceChanged | |
kSurfaceDestroyed | |
kDestroyApp | |
kContentInvalidated | |
kKeyPressed | |
kTouched | |
kUIStateChanged |
Definition at line 22 of file surface_glue_android.h.
|
static |
|
static |
|
static |
Definition at line 33 of file surface_glue_android.cpp.
|
static |
Definition at line 190 of file Window_unix.cpp.
Definition at line 124 of file Window_win.cpp.
|
static |
Definition at line 230 of file Window_unix.cpp.
|
static |
Definition at line 161 of file Window_win.cpp.
JNIEXPORT void JNICALL sk_app::Java_org_skia_viewer_ViewerActivity_onKeyPressed | ( | JNIEnv * | env, |
jobject | activity, | ||
jlong | handle, | ||
jint | keycode | ||
) |
Definition at line 272 of file surface_glue_android.cpp.
JNIEXPORT void JNICALL sk_app::Java_org_skia_viewer_ViewerActivity_onSurfaceChanged | ( | JNIEnv * | env, |
jobject | activity, | ||
jlong | handle, | ||
jobject | surface | ||
) |
Definition at line 258 of file surface_glue_android.cpp.
JNIEXPORT void JNICALL sk_app::Java_org_skia_viewer_ViewerActivity_onSurfaceCreated | ( | JNIEnv * | env, |
jobject | activity, | ||
jlong | handle, | ||
jobject | surface | ||
) |
Definition at line 250 of file surface_glue_android.cpp.
JNIEXPORT void JNICALL sk_app::Java_org_skia_viewer_ViewerActivity_onSurfaceDestroyed | ( | JNIEnv * | env, |
jobject | activity, | ||
jlong | handle | ||
) |
Definition at line 266 of file surface_glue_android.cpp.
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 | ||
) |
Definition at line 282 of file surface_glue_android.cpp.
JNIEXPORT void JNICALL sk_app::Java_org_skia_viewer_ViewerActivity_onUIStateChanged | ( | JNIEnv * | env, |
jobject | activity, | ||
jlong | handle, | ||
jstring | stateName, | ||
jstring | stateValue | ||
) |
Definition at line 293 of file surface_glue_android.cpp.
JNIEXPORT jlong JNICALL sk_app::Java_org_skia_viewer_ViewerApplication_createNativeApp | ( | JNIEnv * | env, |
jobject | application, | ||
jobject | assetManager | ||
) |
Definition at line 236 of file surface_glue_android.cpp.
JNIEXPORT void JNICALL sk_app::Java_org_skia_viewer_ViewerApplication_destroyNativeApp | ( | JNIEnv * | env, |
jobject | application, | ||
jlong | handle | ||
) |
Definition at line 244 of file surface_glue_android.cpp.
Definition at line 208 of file Window_win.cpp.
|
static |
Definition at line 28 of file Window_win.cpp.
|
static |
Definition at line 27 of file Window_win.cpp.
|
static |
Definition at line 25 of file Window_win.cpp.
|
static |
Definition at line 26 of file Window_win.cpp.
const long sk_app::kEventMask |
Definition at line 40 of file Window_unix.cpp.
|
static |
Definition at line 55 of file surface_glue_android.cpp.