Tizen Native API  6.0
Dali::TouchPoint Struct Reference

A TouchPoint represents a point on the screen that is currently being touched or where touch has stopped. More...

Public Types

enum  State
 Enumeration for Touch state. More...

Public Member Functions

 TouchPoint (int32_t id, State state, float screenX, float screenY)
 Constructor.
 TouchPoint (int32_t id, State state, float screenX, float screenY, float localX, float localY)
 Constructor.
 ~TouchPoint ()
 Destructor.

Public Attributes

int32_t deviceId
 Each touch point has a unique device ID which specifies the touch device for that point.
State state
 State of the point.
Actor hitActor
 The actor that was underneath the touch point.
Vector2 local
 The co-ordinates relative to the top-left of the hit-actor.
Vector2 screen
 The co-ordinates relative to the top-left of the screen.

Detailed Description

A TouchPoint represents a point on the screen that is currently being touched or where touch has stopped.

Since:
3.0, DALi version 1.0.0

Member Enumeration Documentation

Enumeration for Touch state.

Since:
3.0, DALi version 1.0.0
Enumerator:
Started 

Touch or hover started

Finished 

Touch or hover finished

Down 

Screen touched

Up 

Touch stopped

Motion 

Finger dragged or hovered

Leave 

Leave the boundary of an actor

Stationary 

No change from last event. Useful when a multi-point event occurs where all points are sent but indicates that this particular point has not changed since the last time

Interrupted 

A system event has occurred which has interrupted the touch or hover event sequence.

Last 

Number of states.


Constructor & Destructor Documentation

Dali::TouchPoint::TouchPoint ( int32_t  id,
State  state,
float  screenX,
float  screenY 
)

Constructor.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]idThe touch device ID
[in]stateThe state
[in]screenXThe X co-ordinate relative to the screen's origin
[in]screenYThe Y co-ordinate relative to the screen's origin
Dali::TouchPoint::TouchPoint ( int32_t  id,
State  state,
float  screenX,
float  screenY,
float  localX,
float  localY 
)

Constructor.

Since:
3.0, DALi version 1.0.0
Parameters:
[in]idThe touch device ID
[in]stateThe state
[in]screenXThe X co-ordinate relative to the screen's origin
[in]screenYThe Y co-ordinate relative to the screen's origin
[in]localXThe X co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor
[in]localYThe Y co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor

Destructor.

Since:
3.0, DALi version 1.0.0

Member Data Documentation

The co-ordinates relative to the top-left of the hit-actor.

Note:
The top-left of an actor is (0.0, 0.0, 0.5).
If you require the local coordinates of another actor (e.g the parent of the hit actor), then you should use Actor::ScreenToLocal().

State of the point.

See also:
State