cocos2d-x 3.0 |
)
- 文件列表 - 文件成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
GUIDefine.h 文件参考
#include "cocos2d.h"
#include
#include "cocostudio/ObjectFactory.h"
## 宏定义 | |
#define | DECLARE_CLASS_GUI_INFO |
#define | IMPLEMENT_CLASS_GUI_INFO(className) |
#define | CREATE_CLASS_GUI_INFO(className) cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \ |
#define | DECLARE_CLASS_WIDGET_READER_INFO |
#define | IMPLEMENT_CLASS_WIDGET_READER_INFO(className) |
#define | CREATE_CLASS_WIDGET_READER_INFO(className) cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \ |
宏定义说明
#define CREATE_CLASS_GUI_INFO | ( | className | ) | cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \ |
#define CREATE_CLASS_WIDGET_READER_INFO | ( | className | ) | cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \ |
#define DECLARE_CLASS_GUI_INFO |
值:
public: \
static cocostudio::ObjectFactory::TInfo __Type; \
static cocos2d::Ref* createInstance(void); \
Definition: CCRef.h:66
cocostudio::ObjectFactory::TInfo
Definition: ObjectFactory.h:50
#define DECLARE_CLASS_WIDGET_READER_INFO |
值:
public: \
static cocostudio::ObjectFactory::TInfo __Type; \
static cocos2d::Ref* createInstance(void); \
Definition: CCRef.h:66
cocostudio::ObjectFactory::TInfo
Definition: ObjectFactory.h:50
#define IMPLEMENT_CLASS_GUI_INFO | ( | className | ) |
值:
cocos2d::Ref* className::createInstance(void) \
{ \
return className::create(); \
} \
cocostudio::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); \
Definition: CCRef.h:66
#define IMPLEMENT_CLASS_WIDGET_READER_INFO | ( | className | ) |
值:
cocos2d::Ref* className::createInstance(void) \
{ \
return className::getInstance(); \
} \
cocostudio::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); \
Definition: CCRef.h:66
- cocos
- ui
- GUIDefine.h
- 生成于 2014年 五月 29日 星期四 09:41:42 , 为 cocos2d-x使用 1.8.6