#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 |
| The buttons currently pressed, if any. | |
| 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. | |
Definition at line 1306 of file embedder.h.
| int64_t FlutterPointerEvent::buttons |
The buttons currently pressed, if any.
Definition at line 1333 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event().
| 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 1320 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 1331 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), and fl_engine_send_pointer_pan_zoom_event().
| double FlutterPointerEvent::pan_x |
The x offset of the pan/zoom in physical pixels.
Definition at line 1335 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 1337 of file embedder.h.
Referenced by fl_engine_send_pointer_pan_zoom_event().
| FlutterPointerPhase FlutterPointerEvent::phase |
Definition at line 1309 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(), and flutter::testing::TEST_F().
| double FlutterPointerEvent::rotation |
The rotation of the pan/zoom in radians, where 0.0 is the initial angle.
Definition at line 1341 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 1339 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 1323 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 1325 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event().
| FlutterPointerSignalKind FlutterPointerEvent::signal_kind |
Definition at line 1321 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 1308 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(), 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 1313 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(), and flutter::testing::TEST_F().
| FlutterViewId FlutterPointerEvent::view_id |
The identifier of the view that received the pointer event.
Definition at line 1343 of file embedder.h.
Referenced by fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), 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 1315 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(), and flutter::testing::TEST_F().
| double FlutterPointerEvent::y |
The y coordinate of the pointer event in physical pixels.
Definition at line 1317 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(), and flutter::testing::TEST_F().