⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
#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. | |
| Node * | getCurrentTarget () |
| Gets current target of the event. | |
| Public Member Functions inherited from Object | |
| void | retain () |
| Retains the ownership. | |
| void | release () |
| Releases the ownership immediately. | |
| Object * | autorelease () |
| 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. | |
Touch event.
|
inline |
Get event code.
|
inline |
Get the touches.
|
inline |
Set the event code.
| eventCode | A given EventCode. |
|
inline |
Set the touches.
| touches | A given touches vector. |