/third_party/skia/tools/sk_app/ |
D | Window.h | 105 virtual bool onKey(skui::Key, skui::InputState, skui::ModifierKey) { return false; } in onKey() argument 106 virtual bool onMouse(int x, int y, skui::InputState, skui::ModifierKey) { return false; } in onMouse() argument 108 virtual bool onTouch(intptr_t owner, skui::InputState, float x, float y) { return false; } in onTouch() argument 110 virtual bool onFling(skui::InputState state) { return false; } in onFling() 111 … virtual bool onPinch(skui::InputState state, float scale, float x, float y) { return false; } in onPinch() 129 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers); 130 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers); 132 …bool onTouch(intptr_t owner, skui::InputState state, float x, float y); // multi-owner = multi-to… 134 bool onFling(skui::InputState state); 135 bool onPinch(skui::InputState state, float scale, float x, float y);
|
D | Window.cpp | 47 bool Window::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() 51 bool Window::onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) { in onMouse() 59 bool Window::onTouch(intptr_t owner, skui::InputState state, float x, float y) { in onTouch() 63 bool Window::onFling(skui::InputState state) { in onFling() 67 bool Window::onPinch(skui::InputState state, float scale, float x, float y) { in onPinch()
|
/third_party/skia/tools/sk_app/ios/ |
D | Window_ios.mm | 157 skui::InputState::kDown, skui::ModifierKey::kNone); 161 skui::InputState::kMove, skui::ModifierKey::kNone); 165 skui::InputState::kUp, skui::ModifierKey::kNone); 169 skui::InputState::kUp, skui::ModifierKey::kNone); 181 skui::InputState::kDown, skui::ModifierKey::kNone); 183 skui::InputState::kUp, skui::ModifierKey::kNone); 196 fWindow->onPinch(skui::InputState::kDown, scale, location.x, location.y); 199 fWindow->onPinch(skui::InputState::kMove, scale, location.x, location.y); 202 fWindow->onPinch(skui::InputState::kUp, scale, location.x, location.y); 205 fWindow->onPinch(skui::InputState::kUp, scale, location.x, location.y); [all …]
|
/third_party/skia/samplecode/ |
D | Sample.cpp | 64 bool Sample::mouse(SkPoint point, skui::InputState clickState, skui::ModifierKey modifierKeys) { in mouse() 70 case skui::InputState::kDown: in mouse() 77 fClick->fState = skui::InputState::kDown; in mouse() 81 case skui::InputState::kMove: in mouse() 85 fClick->fState = skui::InputState::kMove; in mouse() 90 case skui::InputState::kUp: in mouse() 94 fClick->fState = skui::InputState::kUp; in mouse()
|
D | Sample.h | 67 skui::InputState fState = skui::InputState::kDown; 74 bool mouse(SkPoint point, skui::InputState clickState, skui::ModifierKey modifierKeys);
|
/third_party/flutter/skia/samplecode/ |
D | Sample.cpp | 64 bool Sample::mouse(SkPoint point, InputState clickState, ModifierKey modifierKeys) { in mouse() 66 case InputState::kDown: in mouse() 76 fClick->fState = InputState::kDown; in mouse() 80 case InputState::kMove: in mouse() 84 fClick->fState = InputState::kMove; in mouse() 89 case InputState::kUp: in mouse() 93 fClick->fState = InputState::kUp; in mouse()
|
D | Sample.h | 62 InputState fState = InputState::kDown; 66 bool mouse(SkPoint point, InputState clickState, ModifierKey modifierKeys);
|
/third_party/skia/modules/canvaskit/ |
D | viewer_bindings.cpp | 59 enum_<skui::InputState>("InputState") in EMSCRIPTEN_BINDINGS() 60 .value("Down", skui::InputState::kDown) in EMSCRIPTEN_BINDINGS() 61 .value("Up", skui::InputState::kUp) in EMSCRIPTEN_BINDINGS() 62 .value("Move", skui::InputState::kMove) in EMSCRIPTEN_BINDINGS() 63 .value("Right", skui::InputState::kRight) in EMSCRIPTEN_BINDINGS() 64 .value("Left", skui::InputState::kLeft); in EMSCRIPTEN_BINDINGS()
|
/third_party/flutter/skia/tools/sk_app/win/ |
D | Window_win.cpp | 254 eventHandled = window->onKey(get_key(wParam), InputState::kDown, in WndProc() 260 eventHandled = window->onKey(get_key(wParam), InputState::kUp, in WndProc() 277 InputState istate = ((wParam & MK_LBUTTON) != 0) ? InputState::kDown in WndProc() 278 : InputState::kUp; in WndProc() 296 eventHandled = window->onMouse(xPos, yPos, InputState::kMove, in WndProc() 314 InputState state; in WndProc() 316 state = InputState::kDown; in WndProc() 318 state = InputState::kMove; in WndProc() 320 state = InputState::kUp; in WndProc()
|
/third_party/skia/tools/sk_app/win/ |
D | Window_win.cpp | 253 eventHandled = window->onKey(get_key(wParam), skui::InputState::kDown, in WndProc() 259 eventHandled = window->onKey(get_key(wParam), skui::InputState::kUp, in WndProc() 276 skui::InputState istate = ((wParam & MK_LBUTTON) != 0) ? skui::InputState::kDown in WndProc() 277 : skui::InputState::kUp; in WndProc() 295 eventHandled = window->onMouse(xPos, yPos, skui::InputState::kMove, in WndProc() 313 skui::InputState state; in WndProc() 315 state = skui::InputState::kDown; in WndProc() 317 state = skui::InputState::kMove; in WndProc() 319 state = skui::InputState::kUp; in WndProc()
|
/third_party/flutter/skia/tools/sk_app/ |
D | Window.h | 140 virtual bool onKey(Key key, InputState state, ModifierKey modifiers) { return false; } in onKey() 141 … virtual bool onMouse(int x, int y, InputState state, ModifierKey modifiers) { return false; } in onMouse() 143 virtual bool onTouch(intptr_t owner, InputState state, float x, float y) { return false; } in onTouch() 161 bool onKey(Key key, InputState state, ModifierKey modifiers); 162 bool onMouse(int x, int y, InputState state, ModifierKey modifiers); 164 bool onTouch(intptr_t owner, InputState state, float x, float y); // multi-owner = multi-touch
|
D | Window.cpp | 47 bool Window::onKey(Key key, InputState state, ModifierKey modifiers) { in onKey() 51 bool Window::onMouse(int x, int y, InputState state, ModifierKey modifiers) { in onMouse() 59 bool Window::onTouch(intptr_t owner, InputState state, float x, float y) { in onTouch()
|
/third_party/flutter/skia/tools/sk_app/android/ |
D | surface_glue_android.cpp | 62 static const std::unordered_map<int, InputState> ANDROID_TO_WINDOW_STATEMAP({ 63 {AMOTION_EVENT_ACTION_DOWN, InputState::kDown}, 64 {AMOTION_EVENT_ACTION_POINTER_DOWN, InputState::kDown}, 65 {AMOTION_EVENT_ACTION_UP, InputState::kUp}, 66 {AMOTION_EVENT_ACTION_POINTER_UP, InputState::kUp}, 67 {AMOTION_EVENT_ACTION_MOVE, InputState::kMove}, 68 {AMOTION_EVENT_ACTION_CANCEL, InputState::kUp}, 169 skiaAndroidApp->fWindow->onKey(it->second, InputState::kDown, ModifierKey::kNone); in message_callback() 170 skiaAndroidApp->fWindow->onKey(it->second, InputState::kUp, ModifierKey::kNone); in message_callback()
|
/third_party/skia/tools/sk_app/android/ |
D | surface_glue_android.cpp | 62 static const std::unordered_map<int, skui::InputState> ANDROID_TO_WINDOW_STATEMAP({ 63 {AMOTION_EVENT_ACTION_DOWN, skui::InputState::kDown }, 64 {AMOTION_EVENT_ACTION_POINTER_DOWN, skui::InputState::kDown }, 65 {AMOTION_EVENT_ACTION_UP, skui::InputState::kUp }, 66 {AMOTION_EVENT_ACTION_POINTER_UP, skui::InputState::kUp }, 67 {AMOTION_EVENT_ACTION_MOVE, skui::InputState::kMove }, 68 {AMOTION_EVENT_ACTION_CANCEL, skui::InputState::kUp }, 169 … skiaAndroidApp->fWindow->onKey(it->second, skui::InputState::kDown, skui::ModifierKey::kNone); in message_callback() 170 … skiaAndroidApp->fWindow->onKey(it->second, skui::InputState::kUp, skui::ModifierKey::kNone); in message_callback()
|
/third_party/skia/tools/viewer/ |
D | Viewer.h | 42 bool onTouch(intptr_t owner, skui::InputState state, float x, float y) override; 43 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override; 45 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) override; 47 bool onPinch(skui::InputState state, float scale, float x, float y) override; 48 bool onFling(skui::InputState state) override;
|
D | ImGuiLayer.cpp | 106 bool ImGuiLayer::onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) { in onMouse() 110 if (skui::InputState::kDown == state) { in onMouse() 112 } else if (skui::InputState::kUp == state) { in onMouse() 221 bool ImGuiLayer::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() 223 io.KeysDown[static_cast<int>(key)] = (skui::InputState::kDown == state); in onKey()
|
D | SlideDir.cpp | 173 bool onMouse(SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers) { in onMouse() 394 bool SlideDir::onMouse(SkScalar x, SkScalar y, skui::InputState state, in onMouse() 397 if (state == skui::InputState::kMove || sknonstd::Any(modifiers)) in onMouse() 411 case skui::InputState::kDown: in onMouse() 415 case skui::InputState::kUp: in onMouse()
|
/third_party/flutter/skia/tools/sk_app/ios/ |
D | Window_ios.cpp | 199 this->onTouch(event.tfinger.fingerId, InputState::kDown, in handleEvent() 205 this->onTouch(event.tfinger.fingerId, InputState::kUp, in handleEvent() 211 this->onTouch(event.tfinger.fingerId, InputState::kMove, in handleEvent() 219 if (!this->onKey(key, InputState::kDown, get_modifiers(event))) { in handleEvent() 230 (void) this->onKey(key, InputState::kUp, in handleEvent()
|
/third_party/flutter/skia/tools/viewer/ |
D | ImGuiLayer.cpp | 73 bool ImGuiLayer::onMouse(int x, int y, InputState state, ModifierKey modifiers) { in onMouse() 77 if (InputState::kDown == state) { in onMouse() 79 } else if (InputState::kUp == state) { in onMouse() 187 bool ImGuiLayer::onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers) { in onKey() 189 io.KeysDown[static_cast<int>(key)] = (InputState::kDown == state); in onKey()
|
D | Viewer.h | 40 bool onTouch(intptr_t owner, InputState state, float x, float y) override; 41 bool onMouse(int x, int y, InputState state, ModifierKey modifiers) override; 43 bool onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers) override;
|
D | SlideDir.cpp | 161 bool onMouse(SkScalar x, SkScalar y, InputState state, ModifierKey modifiers) { in onMouse() 382 bool SlideDir::onMouse(SkScalar x, SkScalar y, InputState state, in onMouse() 385 if (state == InputState::kMove || skstd::Any(modifiers)) in onMouse() 399 case InputState::kDown: in onMouse() 403 case InputState::kUp: in onMouse()
|
/third_party/skia/tools/sk_app/mac/ |
D | Window_mac.mm | 351 const skui::InputState state = Any(modifiers & cur.modifier) ? skui::InputState::kDown 352 : skui::InputState::kUp; 377 if (!fWindow->onKey(key, skui::InputState::kDown, modifiers)) { 401 (void) fWindow->onKey(key, skui::InputState::kUp, modifiers); 418 skui::InputState::kDown, modifiers); 430 skui::InputState::kUp, modifiers); 447 skui::InputState::kMove, modifiers);
|
/third_party/flutter/skia/tools/sk_app/unix/ |
D | Window_unix.cpp | 271 InputState::kDown, get_modifiers(event)); in handleEvent() 285 InputState::kUp, get_modifiers(event)); in handleEvent() 291 InputState::kMove, get_modifiers(event)); in handleEvent() 299 if (!this->onKey(key, InputState::kDown, get_modifiers(event))) { in handleEvent() 317 (void) this->onKey(key, InputState::kUp, in handleEvent()
|
/third_party/flutter/skia/experimental/editor/ |
D | editor_application.cpp | 53 static void debug_on_key(sk_app::Window::Key key, InputState, ModifierKey modi) { in debug_on_key() argument 158 bool onMouse(int x, int y, InputState state, ModifierKey modifiers) override { in onMouse() 159 bool mouseDown = InputState::kDown == state; in onMouse() 162 } else if (InputState::kUp == state) { in onMouse() 266 InputState state, in onKey() 268 if (state != InputState::kDown) { in onKey()
|
/third_party/skia/modules/skplaintexteditor/app/ |
D | editor_application.cpp | 56 static void debug_on_key(skui::Key key, skui::InputState, skui::ModifierKey modi) { in debug_on_key() argument 177 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override { in onMouse() 178 bool mouseDown = skui::InputState::kDown == state; in onMouse() 181 } else if (skui::InputState::kUp == state) { in onMouse() 303 skui::InputState state, in onKey() 305 if (state != skui::InputState::kDown) { in onKey()
|