Home
last modified time | relevance | path

Searched refs:ModifierKey (Results 1 – 25 of 54) sorted by relevance

123

/third_party/skia/modules/skplaintexteditor/app/
Deditor_application.cpp39 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/
DWindow_mac.mm13 #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/
Dviewer_bindings.cpp65 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/
DEditor.cpp127 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 …]
DEditor.h43 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/
DWindow.h104 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);
DWindow.cpp43 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()
DCommandSet.h44 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers);
45 bool onChar(SkUnichar, skui::ModifierKey modifiers);
DCommandSet.cpp37 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/
DWindow_win.cpp163 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/
DSample.h68 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);
DSample.cpp64 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()
DSampleStrokeVerb.cpp43 Sample::Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey) override;
146 Sample::Click* StrokeVerbView::onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey) { in onFindClickHandler() argument
DSamplePath.cpp192 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/
DWindow_ios.mm157 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/
DImGuiLayer.h129 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;
DViewer.h43 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;
DImGuiLayer.cpp106 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()
DSampleSlide.h31 skui::ModifierKey modifiers) override;
DSlide.h32 skui::ModifierKey modifiers) { return false; } in onMouse()
DParticlesSlide.h34 skui::ModifierKey modifiers) override;
DSlideDir.cpp173 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/
DModifierKey.h9 enum class ModifierKey { enum
20 template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
/third_party/skia/tools/sk_app/unix/
DWindow_unix.cpp234 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/
DHelloWorld.h25 bool onChar(SkUnichar c, skui::ModifierKey modifiers) override;

123