cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCTouch Class Reference

#include <CCTouch.h>

Inheritance diagram for CCTouch:
[legend]
Collaboration diagram for CCTouch:
[legend]

Public Member Functions

 CCTouch ()
 ctor More...
 
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
 getId More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 NA. More...
 
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)
 
 CCObject (const CCObject &)
 
CCObjectoperator= (const CCObject &)
 
virtual void encodeWithCoder (DS_Dictionary *)
 
virtual bool canEncode ()
 
CCObjectType getObjType () const
 
virtual int getTag () const
 
virtual void setTag (int nTag)
 
void setObjType (CCObjectType)
 
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)
 

Additional Inherited Members

- Static Public Member Functions inherited from CCObject
static CCObjectcreateWithCoder (DS_Dictionary *)
 
- 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
 
int m_nTag
 
int m_eObjType
 
unsigned int m_uObjectIdxInArray
 

Constructor & Destructor Documentation

◆ CCTouch()

CCTouch ( )
inline

ctor

Member Function Documentation

◆ getDelta()

CCPoint getDelta ( ) const

returns the delta of 2 current touches locations in screen coordinates

◆ getID()

int getID ( ) const
inline

getId

◆ getLocation()

CCPoint getLocation ( ) const

returns the current touch location in OpenGL coordinates

◆ getLocationInView()

CCPoint getLocationInView ( ) const

returns the current touch location in screen coordinates

◆ getPreviousLocation()

CCPoint getPreviousLocation ( ) const

returns the previous touch location in OpenGL coordinates

◆ getPreviousLocationInView()

CCPoint getPreviousLocationInView ( ) const

returns the previous touch location in screen coordinates

◆ getStartLocation()

CCPoint getStartLocation ( ) const

returns the start touch location in OpenGL coordinates

◆ getStartLocationInView()

CCPoint getStartLocationInView ( ) const

returns the start touch location in screen coordinates

◆ setTouchInfo()

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

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