Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Attributes | List of all members
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 1032 of file embedder.h.

Member Data Documentation

◆ buttons

int64_t FlutterPointerEvent::buttons

The buttons currently pressed, if any.

Definition at line 1059 of file embedder.h.

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

◆ pan_x

double FlutterPointerEvent::pan_x

The x offset of the pan/zoom in physical pixels.

Definition at line 1061 of file embedder.h.

◆ pan_y

double FlutterPointerEvent::pan_y

The y offset of the pan/zoom in physical pixels.

Definition at line 1063 of file embedder.h.

◆ phase

FlutterPointerPhase FlutterPointerEvent::phase

Definition at line 1035 of file embedder.h.

◆ rotation

double FlutterPointerEvent::rotation

The rotation of the pan/zoom in radians, where 0.0 is the initial angle.

Definition at line 1067 of file embedder.h.

◆ scale

double FlutterPointerEvent::scale

The scale of the pan/zoom, where 1.0 is the initial scale.

Definition at line 1065 of file embedder.h.

◆ scroll_delta_x

double FlutterPointerEvent::scroll_delta_x

The x offset of the scroll in physical pixels.

Definition at line 1049 of file embedder.h.

◆ scroll_delta_y

double FlutterPointerEvent::scroll_delta_y

The y offset of the scroll in physical pixels.

Definition at line 1051 of file embedder.h.

◆ signal_kind

FlutterPointerSignalKind FlutterPointerEvent::signal_kind

Definition at line 1047 of file embedder.h.

◆ struct_size

size_t FlutterPointerEvent::struct_size

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

Definition at line 1034 of file embedder.h.

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

◆ view_id

FlutterViewId FlutterPointerEvent::view_id

The identifier of the view that received the pointer event.

Definition at line 1069 of file embedder.h.

◆ x

double FlutterPointerEvent::x

The x coordinate of the pointer event in physical pixels.

Definition at line 1041 of file embedder.h.

◆ y

double FlutterPointerEvent::y

The y coordinate of the pointer event in physical pixels.

Definition at line 1043 of file embedder.h.


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