PinchEventArgs Class Reference

Pinch event argument. More...

Inheritance diagram for PinchEventArgs:
GestureEventArgs

List of all members.

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.

Detailed Description

Pinch event argument.


Constructor & Destructor Documentation

PinchEventArgs ( Widget  source,
float  distance,
float  scale,
float  angle,
Vector2  worldCenter,
Vector2  localCenter 
)

Constructor.

Parameters:
sourceEvent source widget
distancePinch distance
scalePinch scale
anglePinch angle
worldCenterCenter position in the world (screen) coordinate system of a pinch
localCenterCenter position in the local coordinate system of a pinch

Property Documentation

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