/third_party/skia/modules/skplaintexteditor/app/ |
D | editor_application.cpp | 39 static SkString modifiers_desc(skui::ModifierKey m) { in modifiers_desc() 41 #define M(X) if (m & skui::ModifierKey::k ## X ##) { s.append(" {" #X "}"); } in modifiers_desc() 47 static void debug_on_char(SkUnichar c, skui::ModifierKey modifiers) { in debug_on_char() 56 static void debug_on_key(skui::Key key, skui::InputState, skui::ModifierKey modi) { in debug_on_key() 172 bool onMouseWheel(float delta, skui::ModifierKey) override { in onMouseWheel() 177 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override { in onMouse() 184 bool shiftOrDrag = sknonstd::Any(modifiers & skui::ModifierKey::kShift) || !mouseDown; in onMouse() 191 bool onChar(SkUnichar c, skui::ModifierKey modi) override { in onChar() 193 modi &= ~skui::ModifierKey::kFirstPress; in onChar() 194 if (!Any(modi & (skui::ModifierKey::kControl | in onChar() [all …]
|
/third_party/skia/tools/sk_app/mac/ |
D | Window_mac.mm | 13 #include "tools/skui/ModifierKey.h" 249 static skui::ModifierKey get_modifiers(const NSEvent* event) { 251 skui::ModifierKey modifiers = skui::ModifierKey::kNone; 254 modifiers |= skui::ModifierKey::kCommand; 257 modifiers |= skui::ModifierKey::kShift; 260 modifiers |= skui::ModifierKey::kControl; 263 modifiers |= skui::ModifierKey::kOption; 267 modifiers |= skui::ModifierKey::kFirstPress; 279 skui::ModifierKey fLastModifiers; 333 - (skui::ModifierKey) updateModifierKeys:(NSEvent*) event { [all …]
|
/third_party/skia/modules/canvaskit/ |
D | viewer_bindings.cpp | 65 enum_<skui::ModifierKey>("ModifierKey") in EMSCRIPTEN_BINDINGS() 66 .value("None", skui::ModifierKey::kNone) in EMSCRIPTEN_BINDINGS() 67 .value("Shift", skui::ModifierKey::kShift) in EMSCRIPTEN_BINDINGS() 68 .value("Control", skui::ModifierKey::kControl) in EMSCRIPTEN_BINDINGS() 69 .value("Option", skui::ModifierKey::kOption) in EMSCRIPTEN_BINDINGS() 70 .value("Command", skui::ModifierKey::kCommand) in EMSCRIPTEN_BINDINGS() 71 .value("FirstPress", skui::ModifierKey::kFirstPress); in EMSCRIPTEN_BINDINGS()
|
/third_party/skia/experimental/sktext/editor/ |
D | Editor.cpp | 127 bool Editor::onChar(SkUnichar c, skui::ModifierKey modi) { in onChar() 130 modi &= ~skui::ModifierKey::kFirstPress; in onChar() 131 if (!Any(modi & (skui::ModifierKey::kControl | in onChar() 132 skui::ModifierKey::kOption | in onChar() 133 skui::ModifierKey::kCommand))) { in onChar() 139 static constexpr skui::ModifierKey kCommandOrControl = in onChar() 140 skui::ModifierKey::kCommand | skui::ModifierKey::kControl; in onChar() 203 bool Editor::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() 209 skui::ModifierKey ctrlAltCmd = modifiers & (skui::ModifierKey::kControl | in onKey() 210 skui::ModifierKey::kOption | in onKey() [all …]
|
D | Editor.h | 43 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override; 44 bool onKey(skui::Key, skui::InputState, skui::ModifierKey) override; 45 bool onChar(SkUnichar c, skui::ModifierKey modifier) override;
|
/third_party/skia/tools/sk_app/ |
D | Window.h | 104 virtual bool onChar(SkUnichar c, skui::ModifierKey) { return false; } in onChar() argument 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 107 virtual bool onMouseWheel(float delta, skui::ModifierKey) { return false; } in onMouseWheel() argument 128 bool onChar(SkUnichar c, skui::ModifierKey modifiers); 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); 131 bool onMouseWheel(float delta, skui::ModifierKey modifiers);
|
D | Window.cpp | 43 bool Window::onChar(SkUnichar c, skui::ModifierKey modifiers) { in onChar() 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() 55 bool Window::onMouseWheel(float delta, skui::ModifierKey modifiers) { in onMouseWheel()
|
D | CommandSet.h | 44 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers); 45 bool onChar(SkUnichar, skui::ModifierKey modifiers);
|
D | CommandSet.cpp | 37 bool CommandSet::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() 50 bool CommandSet::onChar(SkUnichar c, skui::ModifierKey modifiers) { in onChar()
|
/third_party/skia/tools/sk_app/win/ |
D | Window_win.cpp | 163 static skui::ModifierKey get_modifiers(UINT message, WPARAM wParam, LPARAM lParam) { in get_modifiers() 164 skui::ModifierKey modifiers = skui::ModifierKey::kNone; in get_modifiers() 170 modifiers |= skui::ModifierKey::kFirstPress; in get_modifiers() 173 modifiers |= skui::ModifierKey::kOption; in get_modifiers() 180 modifiers |= skui::ModifierKey::kFirstPress; in get_modifiers() 183 modifiers |= skui::ModifierKey::kOption; in get_modifiers() 190 modifiers |= skui::ModifierKey::kOption; in get_modifiers() 199 modifiers |= skui::ModifierKey::kControl; in get_modifiers() 202 modifiers |= skui::ModifierKey::kShift; in get_modifiers()
|
/third_party/skia/samplecode/ |
D | Sample.h | 68 skui::ModifierKey fModifierKeys = skui::ModifierKey::kNone; 74 bool mouse(SkPoint point, skui::InputState clickState, skui::ModifierKey modifierKeys); 86 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi);
|
D | Sample.cpp | 64 bool Sample::mouse(SkPoint point, skui::InputState clickState, skui::ModifierKey modifierKeys) { in mouse() 114 Sample::Click* Sample::onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi) { in onFindClickHandler()
|
D | SampleStrokeVerb.cpp | 43 Sample::Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey) override; 146 Sample::Click* StrokeVerbView::onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey) { in onFindClickHandler() argument
|
D | SamplePath.cpp | 192 Sample::Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi) override { in onFindClickHandler() 282 Sample::Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi) override { in onFindClickHandler() 409 Sample::Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi) override { in onFindClickHandler() 517 Sample::Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi) override { in onFindClickHandler() 746 Sample::Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi) override { in onFindClickHandler()
|
/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);
|
/third_party/skia/tools/viewer/ |
D | ImGuiLayer.h | 129 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override; 130 bool onMouseWheel(float delta, skui::ModifierKey modifiers) override; 131 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) override; 132 bool onChar(SkUnichar c, skui::ModifierKey modifiers) override;
|
D | Viewer.h | 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; 46 bool onChar(SkUnichar c, skui::ModifierKey modifiers) override;
|
D | ImGuiLayer.cpp | 106 bool ImGuiLayer::onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) { in onMouse() 118 bool ImGuiLayer::onMouseWheel(float delta, skui::ModifierKey modifiers) { in onMouseWheel() 221 bool ImGuiLayer::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() 227 bool ImGuiLayer::onChar(SkUnichar c, skui::ModifierKey modifiers) { in onChar()
|
D | SampleSlide.h | 31 skui::ModifierKey modifiers) override;
|
D | Slide.h | 32 skui::ModifierKey modifiers) { return false; } in onMouse()
|
D | ParticlesSlide.h | 34 skui::ModifierKey modifiers) override;
|
D | SlideDir.cpp | 173 bool onMouse(SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers) { in onMouse() 395 skui::ModifierKey modifiers) { in onMouse() 396 modifiers &= ~skui::ModifierKey::kFirstPress; in onMouse()
|
/third_party/skia/tools/skui/ |
D | ModifierKey.h | 9 enum class ModifierKey { enum 20 template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
|
/third_party/skia/tools/sk_app/unix/ |
D | Window_unix.cpp | 234 static skui::ModifierKey get_modifiers(const XEvent& event) { in get_modifiers() 237 skui::ModifierKey fSkMask; in get_modifiers() 239 { ShiftMask, skui::ModifierKey::kShift }, in get_modifiers() 240 { ControlMask, skui::ModifierKey::kControl }, in get_modifiers() 241 { Mod1Mask, skui::ModifierKey::kOption }, in get_modifiers() 244 skui::ModifierKey modifiers = skui::ModifierKey::kNone; in get_modifiers()
|
/third_party/skia/example/ |
D | HelloWorld.h | 25 bool onChar(SkUnichar c, skui::ModifierKey modifiers) override;
|