cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Public 类型 - 图1 Public 类型 - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Public 类型 | Public 成员函数 | 静态 Public 属性 | 友元 | 所有成员列表

EventTouch类 参考

#include

类 EventTouch 继承关系图:

Public 类型 - 图3 Event Ref

## Public 类型
enum EventCode { BEGAN, MOVED, ENDED, CANCELLED }
- Public 类型 继承自 Event
enum Type { TOUCH, KEYBOARD, ACCELERATION, MOUSE, FOCUS, CUSTOM }
## Public 成员函数
EventTouch ()
EventCode getEventCode () const
const std::vector< Touch > & getTouches () const
void setEventCode (EventCode eventCode)
void setTouches (const std::vector< Touch > &touches)
- Public 成员函数 继承自 Event
virtual ~Event ()
析构函数 更多…
Type getType () const
获取事件类型 更多…
void stopPropagation ()
停止当前事件传播 更多…
bool isStopped () const
检查指定事件是否已经停止 更多…
Node getCurrentTarget ()
获取事件的当前目标 更多…
- Public 成员函数 继承自 Ref
void retain ()
保留所有权. 更多…
void release ()
立即释放所有权. 更多…
Ref autorelease ()
自动释放所有权在不久的将来. 更多…
unsigned int getReferenceCount () const
返回Ref对象当前的引用计数. 更多…
virtual ~Ref ()
NA NA 更多…
## 静态 Public 属性
static const int MAX_TOUCHES = 5
## 友元
class GLViewProtocol
## 额外继承的成员函数
- Protected 成员函数 继承自 Event
Event (Type type)
构造函数 更多…
void setCurrentTarget (Node target)
设置当前目标 更多…
- Protected 成员函数 继承自 Ref
Ref ()
构造函数 更多…
- Protected 属性 继承自 Event
Type _type
事件类型 更多…
bool _isStopped
事件是否已经停止. 更多…
Node _currentTarget
当前目标 更多…
- Protected 属性 继承自 Ref
unsigned int _referenceCount
引用计数 更多…

成员枚举类型说明

enum EventCode

strong

枚举值
BEGAN
MOVED
ENDED
CANCELLED

构造及析构函数说明

EventTouch ( )

成员函数说明

EventCode getEventCode ( ) const

inline

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

inline

void setEventCode ( EventCode eventCode)

inline

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

inline

友元及相关函数文档

friend class GLViewProtocol

friend

类成员变量说明

const int MAX_TOUCHES = 5

static


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/base/CCEventTouch.h
  • cocos2d
  • EventTouch
  • 生成于 2014年 五月 29日 星期四 09:41:45 , 为 cocos2d-x使用 doxygen 1.8.6