#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. | |
| float | getY () const |
| Returns the y position of the touch measured in points. | |
| Vec2f | getPos () const |
| Returns the position of the touch measured in points. | |
| float | getPrevX () const |
| Returns the previous x position of the touch measured in points. | |
| float | getPrevY () const |
| Returns the previous y position of the touch measured in points. | |
| Vec2f | getPrevPos () const |
| Returns the previous position of the touch measured in points. | |
| 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. | |
| cinder::app::TouchEvent::Touch::Touch | ( | const Vec2f & | pos, |
| const Vec2f & | prevPos, | ||
| uint32_t | id, | ||
| double | time, | ||
| void * | native | ||
| ) |
| 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.
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.