|
Tizen Native API
6.0
|
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:
- 2.4, DALi version 1.0.0
Member Enumeration Documentation
Enumeration for Touch state.
- Since:
- 2.4, DALi version 1.0.0
- Enumerator:
Constructor & Destructor Documentation
| Dali::TouchPoint::TouchPoint | ( | int32_t | id, |
| State | state, | ||
| float | screenX, | ||
| float | screenY | ||
| ) |
Constructor.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] id The touch device ID [in] state The state [in] screenX The X co-ordinate relative to the screen's origin [in] screenY The 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:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] id The touch device ID [in] state The state [in] screenX The X co-ordinate relative to the screen's origin [in] screenY The Y co-ordinate relative to the screen's origin [in] localX The X co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor [in] localY The Y co-ordinate relative to the top-left (0.0, 0.0, 0.5) of the actor
Destructor.
- Since:
- 2.4, 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