Public Member Functions
cinder::app::TouchEvent::Touch Class Reference

#include <TouchEvent.h>

List of all members.

Public Member Functions

 Touch (const Vec2f &pos, const Vec2f &prevPos, uint32_t id, double time, void *native)
float getX () const
 Returns the x position of the touch measured in pixels.
float getY () const
 Returns the y position of the touch measured in pixels.
Vec2f getPos () const
 Returns the position of the touch measured in pixels.
float getPrevX () const
 Returns the previous x position of the touch measured in pixels.
float getPrevY () const
 Returns the previous y position of the touch measured in pixels.
Vec2f getPrevPos () const
 Returns the previous position of the touch measured in pixels.
uint32_t getId () const
 Returns an ID unique for the lifetime of the touch.
double getTime () const
 Returns the timestamp associated with the touch, measured in seconds.
const void * getNative () const
 Returns a pointer to the OS-native object. This is a UITouch* on Cocoa Touch and a TOUCHPOINT* on MSW.

Constructor & Destructor Documentation

cinder::app::TouchEvent::Touch::Touch ( const Vec2f pos,
const Vec2f prevPos,
uint32_t  id,
double  time,
void *  native 
)

Member Function Documentation

Returns the x position of the touch measured in pixels.

Returns the y position of the touch measured in pixels.

Returns the position of the touch measured in pixels.

Returns the previous x position of the touch measured in pixels.

Returns the previous y position of the touch measured in pixels.

Returns the previous position of the touch measured in pixels.

Returns an ID unique for the lifetime of the touch.

Returns the timestamp associated with the touch, measured in seconds.

Returns a pointer to the OS-native object. This is a UITouch* on Cocoa Touch and a TOUCHPOINT* on MSW.


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