cohtml.Net.GestureRecognizerBase

Inherits from SystemIDisposable

Inherited by cohtml.Net.FlingRecognizer, cohtml.Net.PanRecognizer, cohtml.Net.TapRecognizer

Public Classes

Name
classTouchEventDataWithCurrentPos

Public Functions

Name
virtual voidDispose()
GestureRecognizerStateGetState()
boolIsEnabled()
voidSetEnabled(bool enable)
intGetPriority()
voidSetGestureListener(IGestureListener listener)
virtual boolOnTouchesBegan(TouchEventData [] touches, ulong count)
virtual boolOnTouchesMoved(GestureRecognizerBase.TouchEventDataWithCurrentPos touches, ulong count)
virtual boolOnTouchesEnded(GestureRecognizerBase.TouchEventDataWithCurrentPos touches, ulong count)
virtual voidOnGestureRecognized()
virtual GestureTypeGetType()
floatGetTouchLocationX()
Returns the location of the touches. If there are multiple touches this will return the centroid of the location.
floatGetTouchLocationY()
voidRecognizeTouches(TouchEventData [] touches, ulong count)

Public Attributes

Name
readonly intMAX_TRACKING_TOUCHES

Protected Attributes

Name
boolswigCMemOwn

Public Functions Documentation

function Dispose

virtual void Dispose()

Reimplemented by: cohtml.Net.TapRecognizer.Dispose, cohtml.Net.PanRecognizer.Dispose, cohtml.Net.FlingRecognizer.Dispose

function GetState

GestureRecognizerState GetState()

function IsEnabled

bool IsEnabled()

function SetEnabled

void SetEnabled(
    bool enable
)

function GetPriority

int GetPriority()

function SetGestureListener

void SetGestureListener(
    IGestureListener listener
)

function OnTouchesBegan

virtual bool OnTouchesBegan(
    TouchEventData [] touches,
    ulong count
)

Reimplemented by: cohtml.Net.TapRecognizer.OnTouchesBegan, cohtml.Net.PanRecognizer.OnTouchesBegan, cohtml.Net.FlingRecognizer.OnTouchesBegan

function OnTouchesMoved

virtual bool OnTouchesMoved(
    GestureRecognizerBase.TouchEventDataWithCurrentPos touches,
    ulong count
)

Reimplemented by: cohtml.Net.PanRecognizer.OnTouchesMoved, cohtml.Net.FlingRecognizer.OnTouchesMoved

function OnTouchesEnded

virtual bool OnTouchesEnded(
    GestureRecognizerBase.TouchEventDataWithCurrentPos touches,
    ulong count
)

Reimplemented by: cohtml.Net.TapRecognizer.OnTouchesEnded, cohtml.Net.PanRecognizer.OnTouchesEnded, cohtml.Net.FlingRecognizer.OnTouchesEnded

function OnGestureRecognized

virtual void OnGestureRecognized()

Reimplemented by: cohtml.Net.TapRecognizer.OnGestureRecognized, cohtml.Net.PanRecognizer.OnGestureRecognized, cohtml.Net.FlingRecognizer.OnGestureRecognized

function GetType

virtual GestureType GetType()

Reimplemented by: cohtml.Net.TapRecognizer.GetType, cohtml.Net.PanRecognizer.GetType, cohtml.Net.FlingRecognizer.GetType

function GetTouchLocationX

float GetTouchLocationX()

Returns the location of the touches. If there are multiple touches this will return the centroid of the location.

function GetTouchLocationY

float GetTouchLocationY()

function RecognizeTouches

void RecognizeTouches(
    TouchEventData [] touches,
    ulong count
)

Public Attributes Documentation

variable MAX_TRACKING_TOUCHES

static readonly int MAX_TRACKING_TOUCHES = cohtmlNativePINVOKE.GestureRecognizerBase_MAX_TRACKING_TOUCHES_get();

Protected Attributes Documentation

variable swigCMemOwn

bool swigCMemOwn;