Public Member Functions |
| | TouchData () |
| | An uninitialized TouchData instance.
|
| | TouchData (const TouchData &other) |
| | Copy constructor.
|
| | ~TouchData () |
| | Destructor.
|
| TouchData & | operator= (const TouchData &other) |
| | Assignment Operator.
|
| unsigned long | GetTime () const |
| | Returns the time (in ms) that the touch event occurred.
|
| std::size_t | GetPointCount () const |
| | Returns the total number of points in this TouchData.
|
| int32_t | GetDeviceId (std::size_t point) const |
| | Returns the ID of the device used for the Point specified.
|
| PointState::Type | GetState (std::size_t point) const |
| | Retrieves the State of the point specified.
|
| Actor | GetHitActor (std::size_t point) const |
| | Retrieves the actor that was underneath the point specified.
|
| const Vector2 & | GetLocalPosition (std::size_t point) const |
| | Retrieves the co-ordinates relative to the top-left of the hit-actor at the point specified.
|
| const Vector2 & | GetScreenPosition (std::size_t point) const |
| | Retrieves the co-ordinates relative to the top-left of the screen of the point specified.
|
| float | GetRadius (std::size_t point) const |
| | Retrieves the radius of the press point.
|
| const Vector2 & | GetEllipseRadius (std::size_t point) const |
| | Retrieves BOTH the horizontal and the vertical radii of the press point.
|
| float | GetPressure (std::size_t point) const |
| | Retrieves the touch pressure.
|
| Degree | GetAngle (std::size_t point) const |
| | Retrieves the angle of the press point relative to the Y-Axis.
|
| Device::Class::Type | GetDeviceClass (std::size_t point) const |
| | Get the device class type the mouse/touch event originated from.
|
| Device::Subclass::Type | GetDeviceSubclass (std::size_t point) const |
| | Get the device subclass type the mouse/touch event originated from.
|
Touch events are a collection of points at a specific moment in time.
When a multi-touch event occurs, each point represents the points that are currently being touched or the points where a touch has stopped.
The first point is the primary point that's used for hit-testing.
- Since:
- 3.0, DALi version 1.1.37
- Note:
- As this is a handle to an internal object, it should not be copied (or used in a container) as all that will do is copy the handle to the same object. The internal object can change which may not be what an application writer expects. If data does need to be stored in the application, then only the required data should be saved (retrieved using the methods of this class).
Should not use this in a TouchData container as it is just a handle and the internal object can change.