Tizen Native API
5.0
|
A PanGesture is emitted when the user moves one or more fingers in a particular direction. More...
Public Member Functions | |
PanGesture () | |
Default Constructor. | |
PanGesture (Gesture::State state) | |
Constructor. | |
PanGesture (const PanGesture &rhs) | |
Copy constructor. | |
PanGesture & | operator= (const PanGesture &rhs) |
Assignment operator. | |
virtual | ~PanGesture () |
Virtual destructor. | |
float | GetSpeed () const |
Returns the speed at which the user is moving their fingers. | |
float | GetDistance () const |
This returns the distance the user has panned (dragged) since the last pan gesture or, if the gesture has just started, then the distance moved since the user touched the screen. | |
float | GetScreenSpeed () const |
Returns the speed at which the user is moving their fingers relative to screen coordinates. | |
float | GetScreenDistance () const |
This returns the distance the user has panned (dragged) since the last pan gesture in screen coordinates or, if the gesture has just started, then the distance in screen coordinates moved since the user touched the screen. | |
Public Attributes | |
Vector2 | velocity |
The velocity at which the user is moving their fingers. | |
Vector2 | displacement |
This is a Vector2 showing how much the user has panned (dragged) since the last pan gesture or, if the gesture has just started, then the amount panned since the user touched the screen. | |
Vector2 | position |
This current touch position of the primary touch point in local actor coordinates. | |
Vector2 | screenVelocity |
The velocity at which the user is moving their fingers. | |
Vector2 | screenDisplacement |
This is a Vector2 showing how much the user has panned (dragged) since the last pan gesture or, if the gesture has just started, then the amount panned since the user touched the screen. | |
Vector2 | screenPosition |
This current touch position of the primary touch point in screen coordinates. | |
uint32_t | numberOfTouches |
The total number of fingers touching the screen in a pan gesture. |
A PanGesture is emitted when the user moves one or more fingers in a particular direction.
This gesture can be in one of three states, when the pan gesture is first detected: Gesture::Started when the pan gesture is continuing: Gesture::Continuing and finally, when the pan gesture ends: Gesture::Finished.
A pan gesture will end in the following ways:
A pan gesture will continue to be sent to the actor under than initial pan until it ends.
Default Constructor.
Constructor.
[in] | state | The state of the gesture |
Dali::PanGesture::PanGesture | ( | const PanGesture & | rhs | ) |
Copy constructor.
[in] | rhs | A reference to the copied handle |
virtual Dali::PanGesture::~PanGesture | ( | ) | [virtual] |
Virtual destructor.
float Dali::PanGesture::GetDistance | ( | ) | const |
This returns the distance the user has panned (dragged) since the last pan gesture or, if the gesture has just started, then the distance moved since the user touched the screen.
This is always a positive value.
float Dali::PanGesture::GetScreenDistance | ( | ) | const |
This returns the distance the user has panned (dragged) since the last pan gesture in screen coordinates or, if the gesture has just started, then the distance in screen coordinates moved since the user touched the screen.
This is always a positive value.
float Dali::PanGesture::GetScreenSpeed | ( | ) | const |
Returns the speed at which the user is moving their fingers relative to screen coordinates.
This is the pixel movement per millisecond.
float Dali::PanGesture::GetSpeed | ( | ) | const |
Returns the speed at which the user is moving their fingers.
This is the pixel movement per millisecond.
PanGesture& Dali::PanGesture::operator= | ( | const PanGesture & | rhs | ) |
Assignment operator.
[in] | rhs | A reference to the copied handle |
This is a Vector2 showing how much the user has panned (dragged) since the last pan gesture or, if the gesture has just started, then the amount panned since the user touched the screen.
A positive x value shows that the user is panning to the right, a negative x value means the opposite. A positive y value shows that the user is panning downwards, a negative y value means upwards. This value is in local actor coordinates, the actor being the one attached to the PanGestureDetector.
This is a Vector2 showing how much the user has panned (dragged) since the last pan gesture or, if the gesture has just started, then the amount panned since the user touched the screen.
A positive x value shows that the user is panning to the right, a negative x value means the opposite. A positive y value shows that the user is panning downwards, a negative y value means upwards. This value is in screen coordinates.
The velocity at which the user is moving their fingers.
This is represented as a Vector2 and is the pixel movement per millisecond. A positive x value shows that the user is panning to the right, a negative x value means the opposite. A positive y value shows that the user is panning downwards, a negative y values means upwards. This value represents the screen coordinates.
The velocity at which the user is moving their fingers.
This is represented as a Vector2 and is the pixel movement per millisecond. A positive x value shows that the user is panning to the right, a negative x value means the opposite. A positive y value shows that the user is panning downwards, a negative y values means upwards. This value represents the local coordinates of the actor attached to the PanGestureDetector.