Cinder  0.9.1
Public Member Functions | List of all members
cinder::app::TouchEvent::Touch Class Reference

#include <TouchEvent.h>

Public Member Functions

 Touch ()
 
 Touch (const vec2 &pos, const vec2 &prevPos, uint32_t id, double time, void *native)
 
bool isHandled () const
 
void setHandled (bool handled=true)
 
float getX () const
 
float getY () const
 
vec2 getPos () const
 
void setPos (const ivec2 &pos)
 
float getPrevX () const
 
float getPrevY () const
 
vec2 getPrevPos () const
 
uint32_t getId () const
 
double getTime () const
 
const void * getNative () const
 

Constructor & Destructor Documentation

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

Member Function Documentation

bool cinder::app::TouchEvent::Touch::isHandled ( ) const

Returns whether this Touch has been marked as handled.

void cinder::app::TouchEvent::Touch::setHandled ( bool  handled = true)

Marks the Touch as handled.

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.

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

Returns the position of the touch measured in points.

void cinder::app::TouchEvent::Touch::setPos ( const ivec2 &  pos)

Sets 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.

vec2 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: