Skip to main content

RotationGesture

Namespace:FairyGUI
Source:Assets/Scripts/Gesture/RotationGesture.cs (line 10)

public class RotationGesture : EventDispatcher

手指反向操作的手势。

Inheritance:EventDispatcher → RotationGesture

Inherited members​

EventDispatcher

AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching

Constructors​

RotationGesture(GObject)​

public RotationGesture(GObject host);
ParameterTypeDescription
hostGObject

Source:Gesture/RotationGesture.cs (line 51)

Fields​

delta​

public float delta;

从上次通知后的改变量。

Source:Gesture/RotationGesture.cs (line 38)

rotation​

public float rotation;

总共旋转的角度。

Source:Gesture/RotationGesture.cs (line 33)

snapping​

public bool snapping;

是否把变化量强制为整数。默认true。

Source:Gesture/RotationGesture.cs (line 43)

Methods​

Dispose()​

public void Dispose();

Source:Gesture/RotationGesture.cs (line 64)

Enable(bool)​

public void Enable(bool value);
ParameterTypeDescription
valuebool

Source:Gesture/RotationGesture.cs (line 70)

Properties​

host​

public GObject host { get; private set; }

Source:Gesture/RotationGesture.cs (line 15)

onAction​

public EventListener onAction { get; private set; }

当手势动作时派发该事件。

Source:Gesture/RotationGesture.cs (line 28)

onBegin​

public EventListener onBegin { get; private set; }

当两个手指开始呈反向操作时派发该事件。

Source:Gesture/RotationGesture.cs (line 20)

onEnd​

public EventListener onEnd { get; private set; }

当其中一个手指离开屏幕时派发该事件。

Source:Gesture/RotationGesture.cs (line 24)