Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Attributes | List of all members
flutter::PointerState Struct Reference

#include <pointer_data_packet_converter.h>

Public Attributes

int64_t pointer_identifier
 
bool is_down
 
bool is_pan_zoom_active
 
double physical_x
 
double physical_y
 
double pan_x
 
double pan_y
 
double scale
 
double rotation
 
int64_t buttons
 

Detailed Description

The current information about a pointer.

This struct is used by PointerDataPacketConverter to fill in necessary information for the raw pointer packet sent from embedding. This struct also stores the button state of the last pointer down, up, move, or hover event. When an embedder issues a pointer up or down event where the pointer's position has changed since the last move or hover event, PointerDataPacketConverter generates a synthetic move or hover to notify the framework. In these cases, these events must be issued with the button state prior to the pointer up or down.

Definition at line 30 of file pointer_data_packet_converter.h.

Member Data Documentation

◆ buttons

int64_t flutter::PointerState::buttons

Definition at line 40 of file pointer_data_packet_converter.h.

◆ is_down

bool flutter::PointerState::is_down

Definition at line 32 of file pointer_data_packet_converter.h.

◆ is_pan_zoom_active

bool flutter::PointerState::is_pan_zoom_active

Definition at line 33 of file pointer_data_packet_converter.h.

◆ pan_x

double flutter::PointerState::pan_x

Definition at line 36 of file pointer_data_packet_converter.h.

◆ pan_y

double flutter::PointerState::pan_y

Definition at line 37 of file pointer_data_packet_converter.h.

◆ physical_x

double flutter::PointerState::physical_x

Definition at line 34 of file pointer_data_packet_converter.h.

◆ physical_y

double flutter::PointerState::physical_y

Definition at line 35 of file pointer_data_packet_converter.h.

◆ pointer_identifier

int64_t flutter::PointerState::pointer_identifier

Definition at line 31 of file pointer_data_packet_converter.h.

◆ rotation

double flutter::PointerState::rotation

Definition at line 39 of file pointer_data_packet_converter.h.

◆ scale

double flutter::PointerState::scale

Definition at line 38 of file pointer_data_packet_converter.h.


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