Tizen Native API
5.5
|
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. |
Detailed Description
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.
- Since:
- 3.0, DALi version 1.0.0
Constructor & Destructor Documentation
Default Constructor.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] state The state of the gesture
Dali::PinchGesture::PinchGesture | ( | const PinchGesture & | rhs | ) |
Copy constructor.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] rhs A reference to the copied handle
virtual Dali::PinchGesture::~PinchGesture | ( | ) | [virtual] |
Virtual destructor.
- Since:
- 3.0, DALi version 1.0.0
Member Function Documentation
PinchGesture& Dali::PinchGesture::operator= | ( | const PinchGesture & | rhs | ) |
Assignment operator.
- Since:
- 3.0, DALi version 1.0.0
- Parameters:
-
[in] rhs A reference to the copied handle
- Returns:
- A reference to this
Member Data Documentation
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.