Package | pq.multitouch.events |
Class | public class GestureEvent |
Inheritance | GestureEvent ![]() |
Property | Defined by | ||
---|---|---|---|
angle : Number
[read-only]Indicates the angle of dual-touch blobs in gesture event, in radian.
| GestureEvent | ||
clickCount : int
[read-only]Indicates the count of touch-click action for some gestures related with click, like SingleClickGesture, etc.
| GestureEvent | ||
touchArea : Number
[read-only]Indicates the area of multi-touch blobs that are related with gesture event.
| GestureEvent | ||
touchDist : Number
[read-only]Indicates the distance of dual-touch blobs that are related with gesture event.
| GestureEvent |
Method | Defined by | ||
---|---|---|---|
GestureEvent(type:String, screenX:Number, screenY:Number, clickcount:int=0,
touchDist:Number=0, angle:Number=0, touchArea:Number=0):void Creates an GestureEvent object that contains information about gestures.
| GestureEvent | ||
clone():Event
Creates a copy of the GestureEvent object and sets the value of each property to match that of the original.
|
GestureEvent | ||
toString():String
Returns a string that contains properties of the GestureEvent object.
|
GestureEvent |
Constant | Defined by | ||
---|---|---|---|
SINGLE_DOWN : String = "SINGLE_DOWN"
[static]Defines the value of the type property of a SINGLE_DOWN event object.
| GestureEvent | ||
SINGLE_MOVE : String = "SINGLE_MOVE"
[static]Defines the value of the type property of a SINGLE_MOVE event object.
| GestureEvent | ||
SINGLE_UP : String = "SINGLE_UP"
[static]Defines the value of the type property of a SINGLE_UP event object.
| GestureEvent | ||
SINGLE_CLICK : String = "SINGLE_CLICK"
[static]Defines the value of the type property of a SINGLE_CLICK event object.
| GestureEvent | ||
SINGLE_TOUCH : String = "SINGLE_TOUCH"
[static]Defines the value of the type property of a SINGLE_TOUCH event object.
| GestureEvent | ||
SECOND_DOWN : String = "SECOND_DOWN"
[static]Defines the value of the type property of a SECOND_DOWN event object.
| GestureEvent | ||
SECOND_UP : String = "SECOND_UP"
[static]Defines the value of the type property of a SECOND_UP event object.
| GestureEvent | ||
SECOND_CLICK : String = "SECOND_CLICK"
[static]Defines the value of the type property of a SECOND_CLICK event object.
| GestureEvent | ||
DUAL_DOWN : String = "DUAL_DOWN"
[static]Defines the value of the type property of a DUAL_DOWN event object.
| GestureEvent | ||
DUAL_UP : String = "DUAL_UP"
[static]Defines the value of the type property of a DUAL_UP event object.
| GestureEvent | ||
DUAL_CLICK : String = "DUAL_CLICK"
[static]Defines the value of the type property of a DUAL_CLICK event object.
| GestureEvent | ||
DUAL_MOVE : String = "DUAL_MOVE"
[static]Defines the value of the type property of a DUAL_MOVE event object.
| GestureEvent | ||
ONE_PAUSE_ONE_MOVE : String = "ONE_PAUSE_ONE_MOVE"
[static]Defines the value of the type property of a ONE_PAUSE_ONE_MOVE event object.
| GestureEvent | ||
MULTI_DOWN : String = "MULTI_DOWN"
[static]Defines the value of the type property of a MULTI_DOWN event object.
| GestureEvent | ||
MULTI_MOVE : String = "MULTI_MOVE"
[static]Defines the value of the type property of a MULTI_MOVE event object.
| GestureEvent | ||
MULTI_UP : String = "MULTI_UP"
[static]Defines the value of the type property of a MULTI_UP event object.
| GestureEvent |
angle | property |
angle:Number
[read-only]
Indicates the angle of dual-touch blobs in gesture event, in radian.
Implementationpublic function get |
clickCount | property |
clickCount:int
[read-only]
Indicates the count of touch-click action for some gestures related with click, like SingleClickGesture, etc.
Implementationpublic function get |
touchArea | property |
touchArea:Number
[read-only]
Indicates the area of multi-touch blobs that are related with gesture event.
Implementationpublic function get |
touchDist | property |
touchDist:Number
[read-only]
Indicates the distance of dual-touch blobs that are related with gesture event.
Implementationpublic function get |
clone |
() | method |
public override function clone():Event
Creates a copy of the GestureEvent object and sets the value of each property to match that of the original.
ReturnsEvent— A new GestureEvent object with property values that match those of the original. |
toString | () | method |
public override function toString():String
Returns a string that contains properties of the GestureEvent object. The string is in the following format: [GestureEvent frameID=value type=value x=value ... eventPhase=value]
ReturnsString — properties string of the GestureEvent object. |
SINGLE_DOWN | Constant |
public static const SINGLE_DOWN:String
Defines the value of the type property of a SINGLE_DOWN event object.
SINGLE_MOVE | Constant |
public static const SINGLE_MOVE:String
Defines the value of the type property of a SINGLE_MOVE event object.
SINGLE_UP | Constant |
public static const SINGLE_UP:String
Defines the value of the type property of a SINGLE_UP event object.
SINGLE_CLICK | Constant |
public static const SINGLE_CLICK:String
Defines the value of the type property of a SINGLE_CLICK event object.
SINGLE_TOUCH | Constant |
public static const SINGLE_TOUCH:String
Defines the value of the type property of a SINGLE_TOUCH event object.
SECOND_DOWN | Constant |
public static const SECOND_DOWN:String
Defines the value of the type property of a SECOND_DOWN event object.
SECOND_UP | Constant |
public static const SECOND_UP:String
Defines the value of the type property of a SECOND_UP event object.
SECOND_CLICK | Constant |
public static const SECOND_CLICK:String
Defines the value of the type property of a SECOND_CLICK event object.
DUAL_DOWN | Constant |
public static const DUAL_DOWN:String
Defines the value of the type property of a DUAL_DOWN event object.
DUAL_UP | Constant |
public static const DUAL_UP:String
Defines the value of the type property of a DUAL_UP event object.
DUAL_CLICK | Constant |
public static const DUAL_CLICK:String
Defines the value of the type property of a DUAL_CLICK event object.
DUAL_MOVE | Constant |
public static const DUAL_MOVE:String
Defines the value of the type property of a DUAL_MOVE event object.
ONE_PAUSE_ONE_MOVE | Constant |
public static const ONE_PAUSE_ONE_MOVE:String
Defines the value of the type property of a ONE_PAUSE_ONE_MOVE event object.
MULTI_DOWN | Constant |
public static const MULTI_DOWN:String
Defines the value of the type property of a MULTI_DOWN event object.
MULTI_MOVE | Constant |
public static const MULTI_MOVE:String
Defines the value of the type property of a MULTI_MOVE event object.
MULTI_UP | Constant |
public static const MULTI_UP:String
Defines the value of the type property of a MULTI_UP event object.