Table of Contents

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 Action
options TapGestureOptions

Fields

Threshold

public static float Threshold

Field Value

float

Properties

ButtonIndex

public int ButtonIndex { get; }

Property Value

int

MousePressPosition

public Vector2 MousePressPosition { get; }

Property Value

Vector2

Methods

OnCancel(Gesture)

protected override void OnCancel(Gesture sender)

Parameters

sender Gesture

OnUpdate()

protected override bool OnUpdate()

Returns

bool

WasBegan()

public bool WasBegan()

Returns

bool

WasCanceled()

public bool WasCanceled()

Returns

bool

WasRecognized()

public bool WasRecognized()

Returns

bool

WasRecognizedOrCanceled()

public bool WasRecognizedOrCanceled()

Returns

bool

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

Action

Canceled

Occurs if click was canceled by drag gesture.

public event Action Canceled

Event Type

Action

Recognized

Occurs when the gesture is fully recognized.

public event Action Recognized

Event Type

Action