DragGesture

public class DragGesture

用户在触摸屏上执行拖动动作时的手势。

嵌套类

接口 DragGesture.OnGestureEventListener 将由 DragGesture 调用的回调的接口定义。 

继承的字段

公共构造函数

DragGestureGesturePointersUtility gesturePointersUtility、HitTestResulthitTestResult、MotionEvent motionEvent)

公共方法

Vector3
Vector3

受保护的方法

布尔值
canStart(HitTestResulthitTestResult、MotionEvent motionEvent)
DragGesture
无效
无效
无效
onStart(HitTestResulthitTestResult, MotionEvent motionEvent)
布尔值
updateGestureHitTestResult命中 TestResult、MotionEvent motionEvent)

继承的方法

公共构造函数

public DragGesture (GesturePointersUtility gesturePointersUtility, HitTestResulthitTestResult, MotionEvent motionEvent)

参数
gesturePointersUtility
命中结果
motionEvent [动作事件]

公共方法

public Vector3 getDelta ()

public Vector3 getPosition ()

受保护的方法

受保护的布尔值 canStart (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]

保护 DragGesture getSelf ()

Protect void onCancel ()

Protect void onFinish ()

Protect void onStart (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]

受保护的布尔值 updateGesture (HitTestResulthitTestResult, MotionEvent motionEvent)

参数
命中结果
motionEvent [动作事件]