cocos2d-x  2.2.3
 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...
 
var getPreviousLocation ()
 returns the previous touch location in OpenGL coordinates More...
 
local getPreviousLocation ()
 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...
 
local getLocationInView ()
 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)
local setTouchInfo ( local id, local x, local 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
var ctor ( )
inline
local CCTouch ( )
inline

Member Function Documentation

CCPoint getDelta ( ) const

returns the delta of 2 current touches locations in screen coordinates

var getDelta ( )

returns the delta of 2 current touches locations in screen coordinates

local getDelta ( )

returns the delta of 2 current touches locations in screen coordinates

int getID ( ) const
inline
var getId ( )
inline
local getID ( )
inline
CCPoint getLocation ( ) const

returns the current touch location in OpenGL coordinates

var getLocation ( )

returns the current touch location in OpenGL coordinates

local getLocation ( )

returns the current touch location in OpenGL coordinates

CCPoint getLocationInView ( ) const

returns the current touch location in screen coordinates

var getLocationInView ( )

returns the current touch location in screen coordinates

local getLocationInView ( )

returns the current touch location in screen coordinates

CCPoint getPreviousLocation ( ) const

returns the previous touch location in OpenGL coordinates

var getPreviousLocation ( )

returns the previous touch location in OpenGL coordinates

local getPreviousLocation ( )

returns the previous touch location in OpenGL coordinates

CCPoint getPreviousLocationInView ( ) const

returns the previous touch location in screen coordinates

var getPreviousLocationInView ( )

returns the previous touch location in screen coordinates

local getPreviousLocationInView ( )

returns the previous touch location in screen coordinates

CCPoint getStartLocation ( ) const

returns the start touch location in OpenGL coordinates

var getStartLocation ( )

returns the start touch location in OpenGL coordinates

local getStartLocation ( )

returns the start touch location in OpenGL coordinates

CCPoint getStartLocationInView ( ) const

returns the start touch location in screen coordinates

var getStartLocationInView ( )

returns the start touch location in screen coordinates

local getStartLocationInView ( )

returns the start touch location in screen coordinates

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

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