Pinch event argument. More...
Public Member Functions | |
| PinchEventArgs (Widget source, float distance, float scale, float angle, Vector2 worldCenter, Vector2 localCenter) | |
| Constructor. | |
Properties | |
| float | Distance [get, set] |
| Obtains the distance between the pinching fingers. | |
| float | Scale [get, set] |
| Obtains the pinch scale. | |
| float | Angle [get, set] |
| Obtains the pinch angle. | |
| Vector2 | WorldCenterPosition [get, set] |
| Obtains the position in the world (screen) coordinate system. | |
| Vector2 | LocalCenterPosition [get, set] |
| Obtains the center position of a pinch gesture in the local coordinate system. | |
Pinch event argument.
| PinchEventArgs | ( | Widget | source, |
| float | distance, | ||
| float | scale, | ||
| float | angle, | ||
| Vector2 | worldCenter, | ||
| Vector2 | localCenter | ||
| ) |
Constructor.
| source | Event source widget |
| distance | Pinch distance |
| scale | Pinch scale |
| angle | Pinch angle |
| worldCenter | Center position in the world (screen) coordinate system of a pinch |
| localCenter | Center position in the local coordinate system of a pinch |
float Angle [get, set] |
Obtains the pinch angle.
Value based on the angle of the fingers at the time a pinch starts
float Scale [get, set] |
Obtains the pinch scale.
Value based on the distance between the fingers at the time a pinch starts