1.7.2.9
Gameface
cohtml::GestureEventData Struct Reference

A gesture event. More...

Public Types

enum  EventType {
  Unknown, Fling, PanStart, PanEnd,
  Tap
}
 

Public Member Functions

float GetDeltaX () const
 Returns the horizontal distance between the last handled position and the current position of a pan event. More...
 
float GetDeltaY () const
 Returns the vertical distance between the last handled position and the current position of a pan event. More...
 
float GetDuration () const
 Returns the duration between fling start and fling end of a fling event. More...
 
void SetDeltaX (float newDeltaX)
 Sets the horizontal distance between the last handled position and the current position of a pan event. More...
 
void SetDeltaY (float newDeltaY)
 Sets the horizontal distance between the last handled position and the current position of a pan event. More...
 
void SetDuration (float newDuration)
 Sets the duration between fling start and fling end of a fling event. More...
 
 GestureEventData ()
 

Public Attributes

union {
   struct {
      float   DeltaX
 The horizontal distance between the last handled position and the current position. More...
 
      float   DeltaY
 The vertical distance between the last handled position and the current position. More...
 
   }   PanDetails
 Pan details of the event. More...
 
   struct {
      float   Duration
 The duration between fling start and fling end. More...
 
   }   FlingDetails
 Fling details of the event. More...
 
Details
 The details of the event. More...
 
float CurrentLocationX
 The current X position of the touch in pixels in the space of the view. More...
 
float CurrentLocationY
 The current Y position of the touch in pixels in the space of the view. More...
 
float StartLocationX
 The start X position of the touch in pixels in the space of the view. More...
 
float StartLocationY
 The start Y position of the touch in pixels in the space of the view. More...
 
EventType Type
 The type of the event. More...
 

Detailed Description

A gesture event.

Member Enumeration Documentation

◆ EventType

Enumerator
Unknown 
Fling 
PanStart 
PanEnd 
Tap 

Constructor & Destructor Documentation

◆ GestureEventData()

cohtml::GestureEventData::GestureEventData ( )
inline

Member Function Documentation

◆ GetDeltaX()

float cohtml::GestureEventData::GetDeltaX ( ) const
inline

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

◆ GetDeltaY()

float cohtml::GestureEventData::GetDeltaY ( ) const
inline

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

◆ GetDuration()

float cohtml::GestureEventData::GetDuration ( ) const
inline

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

◆ SetDeltaX()

void cohtml::GestureEventData::SetDeltaX ( float  newDeltaX)
inline

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

◆ SetDeltaY()

void cohtml::GestureEventData::SetDeltaY ( float  newDeltaY)
inline

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

◆ SetDuration()

void cohtml::GestureEventData::SetDuration ( float  newDuration)
inline

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

Member Data Documentation

◆ CurrentLocationX

float cohtml::GestureEventData::CurrentLocationX

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

◆ CurrentLocationY

float cohtml::GestureEventData::CurrentLocationY

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

◆ DeltaX

float cohtml::GestureEventData::DeltaX

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

◆ DeltaY

float cohtml::GestureEventData::DeltaY

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

◆ Details

union { ... } cohtml::GestureEventData::Details

The details of the event.

◆ Duration

float cohtml::GestureEventData::Duration

The duration between fling start and fling end.

◆ FlingDetails

struct { ... } cohtml::GestureEventData::FlingDetails

Fling details of the event.

◆ PanDetails

struct { ... } cohtml::GestureEventData::PanDetails

Pan details of the event.

◆ StartLocationX

float cohtml::GestureEventData::StartLocationX

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

◆ StartLocationY

float cohtml::GestureEventData::StartLocationY

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

◆ Type

EventType cohtml::GestureEventData::Type

The type of the event.