Cocos2d-x  v4
TouchesScriptData Struct Reference

For Lua, the TouchesScriptData is used to find the Lua function pointer by the nativeObject, then call the Lua function by push touches data and actionType into the Lua stack as the parameters when the touches event is triggered. More...

Public Member Functions

 TouchesScriptData (EventTouch::EventCode inActionType, void *inNativeObject, const std::vector< Touch * > &inTouches, Event *evt)
 Constructor of TouchesScriptData. More...
 

Public Attributes

EventTouch::EventCode actionType
 The EventTouch::EventCode type. More...
 
void * nativeObject
 For Lua, it Used to find the Lua function pointer by the ScriptHandlerMgr. More...
 
const std::vector< Touch * > & touches
 The vector of Touch.For Lua, it would be convert to the Lua table form to be pushed into the Lua stack. More...
 
Eventevent
 event information, it is useless for Lua. More...
 

Detailed Description

For Lua, the TouchesScriptData is used to find the Lua function pointer by the nativeObject, then call the Lua function by push touches data and actionType into the Lua stack as the parameters when the touches event is triggered.

@js NA

Constructor & Destructor Documentation

◆ TouchesScriptData()

TouchesScriptData ( EventTouch::EventCode  inActionType,
void *  inNativeObject,
const std::vector< Touch * > &  inTouches,
Event evt 
)
inline

Constructor of TouchesScriptData.

@lua NA @js NA

Member Data Documentation

◆ actionType

The EventTouch::EventCode type.

@lua NA @js NA

◆ nativeObject

void* nativeObject

For Lua, it Used to find the Lua function pointer by the ScriptHandlerMgr.

@lua NA @js NA

◆ touches

const std::vector<Touch*>& touches

The vector of Touch.For Lua, it would be convert to the Lua table form to be pushed into the Lua stack.

@lua NA @js NA

◆ event

Event* event

event information, it is useless for Lua.

@lua NA @js NA


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