Skip to content
SiteEmail

cohtml::GestureEventData

A gesture event.

#include <InputEvents.h>

Name
enumEventType { Unknown, Fling, PanStart, PanEnd, Tap}
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()
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.
EnumeratorValueDescription
Unknown
Fling
PanStart
PanEnd
Tap
inline float GetDeltaX() const

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

inline float GetDeltaY() const

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

inline float GetDuration() const

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

inline void SetDeltaX(
float newDeltaX
)

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

inline void SetDeltaY(
float newDeltaY
)

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

inline void SetDuration(
float newDuration
)

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

inline GestureEventData()
float DeltaX;

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

float DeltaY;

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

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

Pan details of the event.

float Duration;

The duration between fling start and fling end.

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

Fling details of the event.

struct cohtml::GestureEventData::@0 Details;

The details of the event.

float CurrentLocationX;

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

float CurrentLocationY;

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

float StartLocationX;

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

float StartLocationY;

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

EventType Type;

The type of the event.