cocos2d-x  2.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCTouch Class Reference

#include <CCTouch.h>

Inheritance diagram for CCTouch:
CCObject CCCopying

Public Member Functions

 CCTouch ()
CCPoint getLocation () const
 returns the current touch location in OpenGL coordinates More...
 
CCPoint getPreviousLocation () const
 returns the previous touch location in OpenGL coordinates More...
 
CCPoint getStartLocation () const
 returns the start touch location in OpenGL coordinates More...
 
CCPoint getDelta () const
 returns the delta of 2 current touches locations in screen coordinates More...
 
CCPoint getLocationInView () const
 returns the current touch location in screen coordinates More...
 
CCPoint getPreviousLocationInView () const
 returns the previous touch location in screen coordinates More...
 
CCPoint getStartLocationInView () const
 returns the start touch location in screen coordinates More...
 
void setTouchInfo (int id, float x, float y)
int getID () const
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Constructor & Destructor Documentation

CCTouch ( )
inline

Member Function Documentation

CCPoint getDelta ( ) const

returns the delta of 2 current touches locations in screen coordinates

int getID ( ) const
inline
CCPoint getLocation ( ) const

returns the current touch location in OpenGL coordinates

CCPoint getLocationInView ( ) const

returns the current touch location in screen coordinates

CCPoint getPreviousLocation ( ) const

returns the previous touch location in OpenGL coordinates

CCPoint getPreviousLocationInView ( ) const

returns the previous touch location in screen coordinates

CCPoint getStartLocation ( ) const

returns the start touch location in OpenGL coordinates

CCPoint getStartLocationInView ( ) const

returns the start touch location in screen coordinates

void setTouchInfo ( int  id,
float  x,
float  y 
)
inline

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