#include <embedder.h>
Public Attributes | |
| size_t | struct_size |
| The size of this struct. Must be sizeof(FlutterPointerEvent). | |
| FlutterPointerPhase | phase |
| size_t | timestamp |
| double | x |
| The x coordinate of the pointer event in physical pixels. | |
| double | y |
| The y coordinate of the pointer event in physical pixels. | |
| int32_t | device |
| FlutterPointerSignalKind | signal_kind |
| double | scroll_delta_x |
| The x offset of the scroll in physical pixels. | |
| double | scroll_delta_y |
| The y offset of the scroll in physical pixels. | |
| FlutterPointerDeviceKind | device_kind |
| int64_t | buttons |
| double | pan_x |
| The x offset of the pan/zoom in physical pixels. | |
| double | pan_y |
| The y offset of the pan/zoom in physical pixels. | |
| double | scale |
| The scale of the pan/zoom, where 1.0 is the initial scale. | |
| double | rotation |
| The rotation of the pan/zoom in radians, where 0.0 is the initial angle. | |
| FlutterViewId | view_id |
| The identifier of the view that received the pointer event. | |
| double | pressure |
| The pressure of the current pointer, where 0.0 is the default value. | |
| double | pressure_min |
| double | pressure_max |
Definition at line 1352 of file embedder.h.
| int64_t FlutterPointerEvent::buttons |
The buttons currently pressed, if any. See FlutterPointerMouseButtons or FlutterPointerStylusButtons.
Definition at line 1380 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), and flutter::testing::TEST_F().
| int32_t FlutterPointerEvent::device |
An optional device identifier. If this is not specified, it is assumed that the embedder has no multi-touch capability.
Definition at line 1366 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), and fl_engine_send_pointer_pan_zoom_event().
| FlutterPointerDeviceKind FlutterPointerEvent::device_kind |
The type of the device generating this event. Backwards compatibility note: If this is not set, the device will be treated as a mouse, with the primary button set for kDown and kMove. If set explicitly to kFlutterPointerDeviceKindMouse, you must set the correct buttons.
Definition at line 1377 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), and flutter::testing::TEST_F().
| double FlutterPointerEvent::pan_x |
The x offset of the pan/zoom in physical pixels.
Definition at line 1382 of file embedder.h.
Referenced by fl_engine_send_pointer_pan_zoom_event().
| double FlutterPointerEvent::pan_y |
The y offset of the pan/zoom in physical pixels.
Definition at line 1384 of file embedder.h.
Referenced by fl_engine_send_pointer_pan_zoom_event().
| FlutterPointerPhase FlutterPointerEvent::phase |
Definition at line 1355 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), GLFWCursorEnterCallback(), SendPointerEventWithData(), SetEventPhaseFromCursorButtonState(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
| double FlutterPointerEvent::pressure |
The pressure of the current pointer, where 0.0 is the default value.
Definition at line 1392 of file embedder.h.
| double FlutterPointerEvent::pressure_max |
The maximum bound of the pressure of the current pointer, where 0.0 is the default maximum bound.
Definition at line 1398 of file embedder.h.
| double FlutterPointerEvent::pressure_min |
The minimum bound of the pressure of the current pointer, where 0.0 is the default minimum bound.
Definition at line 1395 of file embedder.h.
| double FlutterPointerEvent::rotation |
The rotation of the pan/zoom in radians, where 0.0 is the initial angle.
Definition at line 1388 of file embedder.h.
Referenced by fl_engine_send_pointer_pan_zoom_event().
| double FlutterPointerEvent::scale |
The scale of the pan/zoom, where 1.0 is the initial scale.
Definition at line 1386 of file embedder.h.
Referenced by fl_engine_send_pointer_pan_zoom_event().
| double FlutterPointerEvent::scroll_delta_x |
The x offset of the scroll in physical pixels.
Definition at line 1369 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event().
| double FlutterPointerEvent::scroll_delta_y |
The y offset of the scroll in physical pixels.
Definition at line 1371 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event().
| FlutterPointerSignalKind FlutterPointerEvent::signal_kind |
Definition at line 1367 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event().
| size_t FlutterPointerEvent::struct_size |
The size of this struct. Must be sizeof(FlutterPointerEvent).
Definition at line 1354 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), FlutterEngineSendPointerEvent(), GLFWcursorPositionCallbackAtPhase(), SendPointerEventWithData(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
| size_t FlutterPointerEvent::timestamp |
The timestamp at which the pointer event was generated. The timestamp should be specified in microseconds and the clock should be the same as that used by FlutterEngineGetCurrentTime.
Definition at line 1359 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), fl_engine_send_touch_add_event(), fl_engine_send_touch_down_event(), fl_engine_send_touch_move_event(), fl_engine_send_touch_remove_event(), fl_engine_send_touch_up_event(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
| FlutterViewId FlutterPointerEvent::view_id |
The identifier of the view that received the pointer event.
Definition at line 1390 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
| double FlutterPointerEvent::x |
The x coordinate of the pointer event in physical pixels.
Definition at line 1361 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), GLFWCursorPositionCallback(), SendPointerEventWithData(), SetEventLocationFromCursorPosition(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().
| double FlutterPointerEvent::y |
The y coordinate of the pointer event in physical pixels.
Definition at line 1363 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), SendPointerEventWithData(), SetEventLocationFromCursorPosition(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and flutter::testing::TEST_F().