Tizen Native API
5.0
|
A PinchGesture is emitted when the user moves two fingers towards or away from each other. More...
Public Member Functions | |
PinchGesture (Gesture::State state) | |
Default Constructor. | |
PinchGesture (const PinchGesture &rhs) | |
Copy constructor. | |
PinchGesture & | operator= (const PinchGesture &rhs) |
Assignment operator. | |
virtual | ~PinchGesture () |
Virtual destructor. | |
Public Attributes | |
float | scale |
The scale factor from the start of the pinch gesture till the latest pinch gesture. | |
float | speed |
The speed at which the user is moving their fingers. | |
Vector2 | screenCenterPoint |
The center point of the two points that caused the pinch gesture in screen coordinates. | |
Vector2 | localCenterPoint |
The center point of the two points that caused the pinch gesture in local actor coordinates. |
A PinchGesture is emitted when the user moves two fingers towards or away from each other.
This gesture can be in one of three states; when the pinch gesture is first detected, its state is set to Gesture::Started. After this, if there is change in the gesture, the state will be Gesture::Continuing. Finally, when the gesture ends, the state of the gesture changes to Gesture::Finished.
A pinch gesture will continue to be sent to the actor under the center point of the pinch until the pinch ends.
Default Constructor.
[in] | state | The state of the gesture |
Dali::PinchGesture::PinchGesture | ( | const PinchGesture & | rhs | ) |
Copy constructor.
[in] | rhs | A reference to the copied handle |
virtual Dali::PinchGesture::~PinchGesture | ( | ) | [virtual] |
Virtual destructor.
PinchGesture& Dali::PinchGesture::operator= | ( | const PinchGesture & | rhs | ) |
Assignment operator.
[in] | rhs | A reference to the copied handle |
The scale factor from the start of the pinch gesture till the latest pinch gesture.
If the user is moving their fingers away from each other, then this value increases. Conversely, if the user is moving their fingers towards each other, this value will decrease.
The speed at which the user is moving their fingers.
This is the pixel movement per second.