Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
cinder::app::TouchEvent::Touch Class Reference

#include <TouchEvent.h>

Public Member Functions

 Touch ()
 
 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 points. More...
 
float getY () const
 Returns the y position of the touch measured in points. More...
 
Vec2f getPos () const
 Returns the position of the touch measured in points. More...
 
float getPrevX () const
 Returns the previous x position of the touch measured in points. More...
 
float getPrevY () const
 Returns the previous y position of the touch measured in points. More...
 
Vec2f getPrevPos () const
 Returns the previous position of the touch measured in points. More...
 
uint32_t getId () const
 Returns an ID unique for the lifetime of the touch. More...
 
double getTime () const
 Returns the timestamp associated with the touch, measured in seconds. More...
 
const voidgetNative () const
 Returns a pointer to the OS-native object. This is a UITouch* on Cocoa Touch and a TOUCHPOINT* on MSW. More...
 

Constructor & Destructor Documentation

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

Member Function Documentation

float cinder::app::TouchEvent::Touch::getX ( ) const

Returns the x position of the touch measured in points.

float cinder::app::TouchEvent::Touch::getY ( ) const

Returns the y position of the touch measured in points.

Vec2f cinder::app::TouchEvent::Touch::getPos ( ) const

Returns the position of the touch measured in points.

float cinder::app::TouchEvent::Touch::getPrevX ( ) const

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

float cinder::app::TouchEvent::Touch::getPrevY ( ) const

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

Vec2f cinder::app::TouchEvent::Touch::getPrevPos ( ) const

Returns the previous position of the touch measured in points.

uint32_t cinder::app::TouchEvent::Touch::getId ( ) const

Returns an ID unique for the lifetime of the touch.

double cinder::app::TouchEvent::Touch::getTime ( ) const

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

const void* cinder::app::TouchEvent::Touch::getNative ( ) const

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: