Flutter Engine
FlutterPointerEvent Struct Reference

#include <embedder.h>

Public Attributes

size_t struct_size
 The size of this struct. Must be sizeof(FlutterPointerEvent). More...
 
FlutterPointerPhase phase
 
size_t timestamp
 
double x
 The x coordinate of the pointer event in physical pixels. More...
 
double y
 The y coordinate of the pointer event in physical pixels. More...
 
int32_t device
 
FlutterPointerSignalKind signal_kind
 
double scroll_delta_x
 The x offset of the scroll in physical pixels. More...
 
double scroll_delta_y
 The y offset of the scroll in physical pixels. More...
 
FlutterPointerDeviceKind device_kind
 
int64_t buttons
 The buttons currently pressed, if any. More...
 

Detailed Description

Definition at line 530 of file embedder.h.

Member Data Documentation

◆ buttons

int64_t FlutterPointerEvent::buttons

The buttons currently pressed, if any.

Definition at line 557 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 544 of file embedder.h.

◆ 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 555 of file embedder.h.

Referenced by fl_engine_send_mouse_pointer_event(), and flutter::FlutterWindowsView::SendInitialBounds().

◆ phase

◆ scroll_delta_x

double FlutterPointerEvent::scroll_delta_x

The x offset of the scroll in physical pixels.

Definition at line 547 of file embedder.h.

Referenced by fl_engine_send_mouse_pointer_event(), and FlutterViewController::initWithProject:.

◆ scroll_delta_y

double FlutterPointerEvent::scroll_delta_y

The y offset of the scroll in physical pixels.

Definition at line 549 of file embedder.h.

Referenced by fl_engine_send_mouse_pointer_event(), and FlutterViewController::initWithProject:.

◆ signal_kind

FlutterPointerSignalKind FlutterPointerEvent::signal_kind

◆ struct_size

size_t FlutterPointerEvent::struct_size

The size of this struct. Must be sizeof(FlutterPointerEvent).

Definition at line 532 of file embedder.h.

Referenced by fl_engine_send_mouse_pointer_event(), GLFWcursorPositionCallbackAtPhase(), FlutterViewController::initWithProject:, and SendPointerEventWithData().

◆ 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 537 of file embedder.h.

Referenced by fl_engine_send_mouse_pointer_event().

◆ x

double FlutterPointerEvent::x

◆ y

double FlutterPointerEvent::y

The y coordinate of the pointer event in physical pixels.

Definition at line 541 of file embedder.h.

Referenced by fl_engine_send_mouse_pointer_event(), flutter::FlutterWindowsView::SendInitialBounds(), SendPointerEventWithData(), and SetEventLocationFromCursorPosition().


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