#include <TouchEvent.h>
cinder::app::TouchEvent::Touch::Touch |
( |
| ) |
|
cinder::app::TouchEvent::Touch::Touch |
( |
const vec2 & |
pos, |
|
|
const vec2 & |
prevPos, |
|
|
uint32_t |
id, |
|
|
double |
time, |
|
|
void * |
native |
|
) |
| |
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: