cohtml::GestureEventData

A gesture event.

#include <InputEvents.h>

Public Types

Name
enumEventType { Unknown, Fling, PanStart, PanEnd, Tap}

Public Functions

Name
floatGetDeltaX() const
Returns the horizontal distance between the last handled position and the current position of a pan event.
floatGetDeltaY() const
Returns the vertical distance between the last handled position and the current position of a pan event.
floatGetDuration() const
Returns the duration between fling start and fling end of a fling event.
voidSetDeltaX(float newDeltaX)
Sets the horizontal distance between the last handled position and the current position of a pan event.
voidSetDeltaY(float newDeltaY)
Sets the horizontal distance between the last handled position and the current position of a pan event.
voidSetDuration(float newDuration)
Sets the duration between fling start and fling end of a fling event.
GestureEventData()

Public Attributes

Name
floatDeltaX
The horizontal distance between the last handled position and the current position.
floatDeltaY
The vertical distance between the last handled position and the current position.
struct cohtml::GestureEventData::@0::@1PanDetails
Pan details of the event.
floatDuration
The duration between fling start and fling end.
struct cohtml::GestureEventData::@0::@2FlingDetails
Fling details of the event.
struct cohtml::GestureEventData::@0Details
The details of the event.
floatCurrentLocationX
The current X position of the touch in pixels in the space of the view.
floatCurrentLocationY
The current Y position of the touch in pixels in the space of the view.
floatStartLocationX
The start X position of the touch in pixels in the space of the view.
floatStartLocationY
The start Y position of the touch in pixels in the space of the view.
EventTypeType
The type of the event.

Public Types Documentation

enum EventType

EnumeratorValueDescription
Unknown
Fling
PanStart
PanEnd
Tap

Public Functions Documentation

function GetDeltaX

inline float GetDeltaX() const

Returns the horizontal distance between the last handled position and the current position of a pan event.

function GetDeltaY

inline float GetDeltaY() const

Returns the vertical distance between the last handled position and the current position of a pan event.

function GetDuration

inline float GetDuration() const

Returns the duration between fling start and fling end of a fling event.

function SetDeltaX

inline void SetDeltaX(
    float newDeltaX
)

Sets the horizontal distance between the last handled position and the current position of a pan event.

function SetDeltaY

inline void SetDeltaY(
    float newDeltaY
)

Sets the horizontal distance between the last handled position and the current position of a pan event.

function SetDuration

inline void SetDuration(
    float newDuration
)

Sets the duration between fling start and fling end of a fling event.

function GestureEventData

inline GestureEventData()

Public Attributes Documentation

variable DeltaX

float DeltaX;

The horizontal distance between the last handled position and the current position.

variable DeltaY

float DeltaY;

The vertical distance between the last handled position and the current position.

variable PanDetails

struct cohtml::GestureEventData::@0::@1 PanDetails;

Pan details of the event.

variable Duration

float Duration;

The duration between fling start and fling end.

variable FlingDetails

struct cohtml::GestureEventData::@0::@2 FlingDetails;

Fling details of the event.

variable Details

struct cohtml::GestureEventData::@0 Details;

The details of the event.

variable CurrentLocationX

float CurrentLocationX;

The current X position of the touch in pixels in the space of the view.

variable CurrentLocationY

float CurrentLocationY;

The current Y position of the touch in pixels in the space of the view.

variable StartLocationX

float StartLocationX;

The start X position of the touch in pixels in the space of the view.

variable StartLocationY

float StartLocationY;

The start Y position of the touch in pixels in the space of the view.

variable Type

EventType Type;

The type of the event.