RotationGesture
命名空间:FairyGUI
源码:Assets/Scripts/Gesture/RotationGesture.cs (行 10)
public class RotationGesture : EventDispatcher
手指反向操作的手势。
继承:EventDispatcher → RotationGesture
继承成员
AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching
构造函数
RotationGesture(GObject)
public RotationGesture(GObject host);
| 参数 | 类型 | 说明 |
|---|---|---|
host | GObject |
源码:Gesture/RotationGesture.cs (行 51)
字段
delta
public float delta;
从上次通知后的改变量。
源码:Gesture/RotationGesture.cs (行 38)
rotation
public float rotation;
总共旋转的角度。
源码:Gesture/RotationGesture.cs (行 33)
snapping
public bool snapping;
是否把变化量强制为整数。默认true。
源码:Gesture/RotationGesture.cs (行 43)
方法
Dispose()
public void Dispose();
源码:Gesture/RotationGesture.cs (行 64)
Enable(bool)
public void Enable(bool value);
| 参数 | 类型 | 说明 |
|---|---|---|
value | bool |
源码:Gesture/RotationGesture.cs (行 70)
属性
host
public GObject host { get; private set; }
源码:Gesture/RotationGesture.cs (行 15)
onAction
public EventListener onAction { get; private set; }
当手势动作时派发该事件。
源码:Gesture/RotationGesture.cs (行 28)
onBegin
public EventListener onBegin { get; private set; }
当两个手指开始呈反向操作时派发该事件。
源码:Gesture/RotationGesture.cs (行 20)
onEnd
public EventListener onEnd { get; private set; }
当其中一个手指离开屏幕时派发该事件。
源码:Gesture/RotationGesture.cs (行 24)