Class TapGesture
- Namespace
- Lime
- Assembly
- Lime.dll
public abstract class TapGesture : Gesture
- Inheritance
-
TapGesture
- Derived
- Inherited Members
Constructors
TapGesture(Action, TapGestureOptions)
public TapGesture(Action onRecognized, TapGestureOptions options)
Parameters
onRecognized
Actionoptions
TapGestureOptions
Fields
Threshold
public static float Threshold
Field Value
Properties
ButtonIndex
public int ButtonIndex { get; }
Property Value
MousePressPosition
public Vector2 MousePressPosition { get; }
Property Value
Methods
OnCancel(Gesture)
protected override void OnCancel(Gesture sender)
Parameters
sender
Gesture
OnUpdate()
protected override bool OnUpdate()
Returns
WasBegan()
public bool WasBegan()
Returns
WasCanceled()
public bool WasCanceled()
Returns
WasRecognized()
public bool WasRecognized()
Returns
WasRecognizedOrCanceled()
public bool WasRecognizedOrCanceled()
Returns
Events
Began
Occurs if a user has touched upon the widget. If the widget lies within a scrollable panel, the began event might be deferred in order to give the priority to drag gesture.
public event Action Began
Event Type
Canceled
Occurs if click was canceled by drag gesture.
public event Action Canceled
Event Type
Recognized
Occurs when the gesture is fully recognized.
public event Action Recognized