Tizen Native API
4.0
|
Touch events are a collection of points at a specific moment in time. More...
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.
Should not use this in a TouchData container as it is just a handle and the internal object can change.
Dali::TouchData::TouchData | ( | const TouchData & | other | ) |
Destructor.
Degree Dali::TouchData::GetAngle | ( | std::size_t | point | ) | const |
Retrieves the angle of the press point relative to the Y-Axis.
[in] | point | The point required |
Device::Class::Type Dali::TouchData::GetDeviceClass | ( | std::size_t | point | ) | const |
Get the device class type the mouse/touch event originated from.
The device class type is classification type of the input device of event received.
[in] | point | The point required |
int32_t Dali::TouchData::GetDeviceId | ( | std::size_t | point | ) | const |
Returns the ID of the device used for the Point specified.
Each point has a unique device ID which specifies the device used for that point. This is returned by this method.
[in] | point | The point required |
Device::Subclass::Type Dali::TouchData::GetDeviceSubclass | ( | std::size_t | point | ) | const |
Get the device subclass type the mouse/touch event originated from.
The device subclass type is subclassification type of the input device of event received.
[in] | point | The point required |
const Vector2& Dali::TouchData::GetEllipseRadius | ( | std::size_t | point | ) | const |
Retrieves BOTH the horizontal and the vertical radii of the press point.
[in] | point | The point required |
Actor Dali::TouchData::GetHitActor | ( | std::size_t | point | ) | const |
Retrieves the actor that was underneath the point specified.
[in] | point | The point required |
const Vector2& Dali::TouchData::GetLocalPosition | ( | std::size_t | point | ) | const |
Retrieves the co-ordinates relative to the top-left of the hit-actor at the point specified.
[in] | point | The point required |
std::size_t Dali::TouchData::GetPointCount | ( | ) | const |
Returns the total number of points in this TouchData.
float Dali::TouchData::GetPressure | ( | std::size_t | point | ) | const |
Retrieves the touch pressure.
The pressure range starts at 0.0f. Normal pressure is defined as 1.0f. A value between 0.0f and 1.0f means light pressure has been applied. A value greater than 1.0f means more pressure than normal has been applied.
[in] | point | The point required |
float Dali::TouchData::GetRadius | ( | std::size_t | point | ) | const |
Retrieves the radius of the press point.
This is the average of both the horizontal and vertical radii of the press point.
[in] | point | The point required |
const Vector2& Dali::TouchData::GetScreenPosition | ( | std::size_t | point | ) | const |
Retrieves the co-ordinates relative to the top-left of the screen of the point specified.
[in] | point | The point required |
PointState::Type Dali::TouchData::GetState | ( | std::size_t | point | ) | const |
Retrieves the State of the point specified.
[in] | point | The point required |
unsigned long Dali::TouchData::GetTime | ( | ) | const |
Returns the time (in ms) that the touch event occurred.