Home
last modified time | relevance | path

Searched refs:InputState (Results 1 – 8 of 8) sorted by relevance

/external/skia/tools/viewer/sk_app/
DWindow.h123 enum InputState { enum
132 typedef bool(*OnKeyFunc)(Key key, InputState state, uint32_t modifiers, void* userData);
133 typedef bool(*OnMouseFunc)(int x, int y, InputState state, uint32_t modifiers, void* userData);
135 typedef bool(*OnTouchFunc)(intptr_t owner, InputState state, float x, float y, void* userData);
182 bool onKey(Key key, InputState state, uint32_t modifiers);
183 bool onMouse(int x, int y, InputState state, uint32_t modifiers);
185 bool onTouch(intptr_t owner, InputState state, float x, float y); // multi-owner = multi-touch
DWindow.cpp22 static bool default_key_func(Window::Key key, Window::InputState state, uint32_t modifiers, in default_key_func()
27 static bool default_mouse_func(int x, int y, Window::InputState state, uint32_t modifiers, in default_mouse_func()
36 static bool default_touch_func(intptr_t owner, Window::InputState state, float x, float y, in default_touch_func()
69 bool Window::onKey(Key key, InputState state, uint32_t modifiers) { in onKey()
73 bool Window::onMouse(int x, int y, InputState state, uint32_t modifiers) { in onMouse()
81 bool Window::onTouch(intptr_t owner, InputState state, float x, float y) { in onTouch()
DCommandSet.h44 bool onKey(sk_app::Window::Key key, sk_app::Window::InputState state, uint32_t modifiers);
DCommandSet.cpp37 bool CommandSet::onKey(Window::Key key, Window::InputState state, uint32_t modifiers) { in onKey()
/external/skia/tools/viewer/
DViewer.h29 bool onTouch(intptr_t owner, sk_app::Window::InputState state, float x, float y);
30 bool onMouse(float x, float y, sk_app::Window::InputState state, uint32_t modifiers);
32 bool onKey(sk_app::Window::Key key, sk_app::Window::InputState state, uint32_t modifiers);
DViewer.cpp66 static bool on_touch_handler(intptr_t owner, Window::InputState state, float x, float y, void* user… in on_touch_handler()
79 static bool on_mouse_handler(int x, int y, Window::InputState state, uint32_t modifiers, in on_mouse_handler()
103 static bool on_key_handler(Window::Key key, Window::InputState state, uint32_t modifiers, in on_key_handler()
832 bool Viewer::onTouch(intptr_t owner, Window::InputState state, float x, float y) { in onTouch()
856 bool Viewer::onMouse(float x, float y, Window::InputState state, uint32_t modifiers) { in onMouse()
1447 bool Viewer::onKey(sk_app::Window::Key key, sk_app::Window::InputState state, uint32_t modifiers) { in onKey()
/external/skia/tools/viewer/sk_app/win/
DWindow_win.cpp273 Window::InputState istate = ((wParam & MK_LBUTTON) != 0) ? Window::kDown_InputState in WndProc()
310 Window::InputState state; in WndProc()
/external/skia/tools/viewer/sk_app/android/
Dsurface_glue_android.cpp35 static const std::unordered_map<int, Window::InputState> ANDROID_TO_WINDOW_STATEMAP({