Flutter Engine
 
Loading...
Searching...
No Matches
FlutterPointerEvent Struct Reference

#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.
 

Detailed Description

Definition at line 1306 of file embedder.h.

Member Data Documentation

◆ buttons

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().

◆ device

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().

◆ device_kind

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().

◆ pan_x

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().

◆ pan_y

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().

◆ phase

◆ rotation

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().

◆ scale

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().

◆ scroll_delta_x

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().

◆ scroll_delta_y

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().

◆ signal_kind

FlutterPointerSignalKind FlutterPointerEvent::signal_kind

Definition at line 1321 of file embedder.h.

Referenced by fl_engine_send_mouse_pointer_event().

◆ struct_size

size_t FlutterPointerEvent::struct_size

◆ timestamp

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().

◆ view_id

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().

◆ x

◆ y

double FlutterPointerEvent::y

The documentation for this struct was generated from the following file: