Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
EventTouch Class Reference

Touch event. More...

#include <EventTouch.h>

Inherits Event.

Public Types

enum class  EventCode
 EventCode Touch event code.
 
- Public Types inherited from Event
enum class  Type
 Type Event type.
 

Public Member Functions

 EventTouch ()
 Constructor.
 
EventCode getEventCode () const
 Get event code.
 
const std::vector< Touch * > & getTouches () const
 Get the touches.
 
void setEventCode (EventCode eventCode)
 Set the event code.
 
void setTouches (const std::vector< Touch * > &touches)
 Set the touches.
 
- Public Member Functions inherited from Event
 Event (Type type)
 Constructor.
 
virtual ~Event ()
 Destructor.
 
Type getType () const
 Gets the event type.
 
void stopPropagation ()
 Stops propagation for current event.
 
bool isStopped () const
 Checks whether the event has been stopped.
 
NodegetCurrentTarget ()
 Gets current target of the event.
 
- Public Member Functions inherited from Object
void retain ()
 Retains the ownership.
 
void release ()
 Releases the ownership immediately.
 
Objectautorelease ()
 Releases the ownership sometime soon automatically.
 
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
 
virtual ~Object ()
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 

Detailed Description

Touch event.

Constructor & Destructor Documentation

◆ EventTouch()

Constructor.

@js NA

Member Function Documentation

◆ getEventCode()

EventCode getEventCode ( ) const
inline

Get event code.

Returns
The code of the event.

◆ getTouches()

const std::vector< Touch * > & getTouches ( ) const
inline

Get the touches.

Returns
The touches of the event.

◆ setEventCode()

void setEventCode ( EventCode eventCode)
inline

Set the event code.

Parameters
eventCodeA given EventCode.

◆ setTouches()

void setTouches ( const std::vector< Touch * > & touches)
inline

Set the touches.

Parameters
touchesA given touches vector.

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