Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Public Attributes
Dali::Integration::TouchData Struct Reference

TouchData structure represents the raw touch information from touch-screen for a single touch event e.g. More...

#include <touch-data.h>

Public Types

enum  TouchType { Down, Up, Motion }
 The Touch Type for this data. More...
 

Public Member Functions

 TouchData ()
 
 TouchData (TouchType type, unsigned int timestamp, unsigned int index, int x, int y)
 

Public Attributes

TouchType type
 
unsigned int timestamp
 
unsigned int index
 
int x
 
int y
 

Detailed Description

TouchData structure represents the raw touch information from touch-screen for a single touch event e.g.

"First finger touching down at pixel 123,456 on the screen (relative to top left corner of phone in portrait mode). at timestamp 125ms (from a reference timestamp e.g. phone boot being 0secs)." TouchData(Down, 125, 0, 123, 456)

"Above finger moving to pixel 133,457, at timestamp 150ms" TouchData(Motion, 150, 0, 133, 457)

"Additional finger touching down at pixel 50, 75, at timestamp 175ms" TouchData(Down, 175, 1, 50, 75)

"First finger removing at pixel 143, 458, at timestamp 200ms" TouchData(Up, 200, 0, 143, 458)

"Additional finger removing at pixel 51, 77, at timestamp 225ms" TouchData(Up, 225, 1, 51, 77)

Note: Multiple incidents of touch data can be present at the same timestamp.

Definition at line 57 of file touch-data.h.

Member Enumeration Documentation

The Touch Type for this data.

Enumerator
Down 
Up 
Motion 

Definition at line 63 of file touch-data.h.

Constructor & Destructor Documentation

Dali::Integration::TouchData::TouchData ( )
inline

Definition at line 70 of file touch-data.h.

Dali::Integration::TouchData::TouchData ( TouchType  type,
unsigned int  timestamp,
unsigned int  index,
int  x,
int  y 
)
inline

Definition at line 80 of file touch-data.h.

Member Data Documentation

unsigned int Dali::Integration::TouchData::index

Definition at line 95 of file touch-data.h.

Referenced by Dali::Internal::TouchPointsTracker::SendTouchData().

unsigned int Dali::Integration::TouchData::timestamp

Definition at line 94 of file touch-data.h.

Referenced by Dali::Internal::TouchTracker::SendTouchData().

TouchType Dali::Integration::TouchData::type
int Dali::Integration::TouchData::x
int Dali::Integration::TouchData::y

The documentation for this struct was generated from the following file:
Dali Docs Home
Read more about Dali