Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HTouchInfo Class Reference

The HTouchInfo class encapsulates touch events. More...

#include <HEventInfo.h>

Public Member Functions

 HTouchInfo (float x, float y, float timestamp, int taps, int ident, bool active=true)
 
 HTouchInfo ()
 
void Init (float x=0.0f, float y=0.0f, float timestamp=0.0f, int taps=0, int ident=0, bool active=true)
 

Public Attributes

bool m_bActive
 
MVO_POINTER_SIZED_UINT m_id
 
int m_taps
 
float m_timestamp
 
float m_x
 
float m_y
 

Detailed Description

The HTouchInfo class encapsulates touch events.

HTouchInfo stores location and other information about touch events

Constructor & Destructor Documentation

HTouchInfo::HTouchInfo ( float  x,
float  y,
float  timestamp,
int  taps,
int  ident,
bool  active = true 
)
inline

Constructs an HTouchInfo object.

Parameters
viewA pointer to the HBaseView object.
xThe X coordinate of the touch event, in window space.
yThe Y coordinate of the touch event, in window space.
timestampThe time when the touch has occured
tapsNumber of "taps" (one or more consecutive touches interpreted as one touch)
identUnique identifier
activeTouch is active
HTouchInfo::HTouchInfo ( )
inline

Destructor for HTouchManager

Member Function Documentation

void HTouchInfo::Init ( float  x = 0.0f,
float  y = 0.0f,
float  timestamp = 0.0f,
int  taps = 0,
int  ident = 0,
bool  active = true 
)
inline

HTouchInfo Initializer

Parameters
xThe X coordinate of the touch event, in window space.
yThe Y coordinate of the touch event, in window space.
timestampThe time when the touch has occured
tapsNumber of "taps" (one or more consecutive touches interpreted as one touch)
identUnique identifier
activeTouch is active

Member Data Documentation

bool HTouchInfo::m_bActive

Touch is active

MVO_POINTER_SIZED_UINT HTouchInfo::m_id

Unique Identifier

int HTouchInfo::m_taps

number of consecutive touches interpreted as one touch

float HTouchInfo::m_timestamp

Time when the touch has occured

float HTouchInfo::m_x

x coordinate of touch in window space

float HTouchInfo::m_y

y coordinate of touch in window space


The documentation for this class was generated from the following file: