cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
类 - 图1 类 - 图2)
- 文件列表 - 文件成员

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

| 命名空间 | 宏定义

CCNodeLoader.h 文件参考

#include "extensions/GUI/CCControlExtension/CCInvocation.h"

#include "CCBReader.h"

#include "extensions/GUI/CCControlExtension/CCControl.h"

##
struct BlockData
struct BlockControlData
class NodeLoader
## 命名空间
cocosbuilder
## 宏定义
#define PROPERTY_POSITION "position"
#define PROPERTY_CONTENTSIZE "contentSize"
#define PROPERTY_SKEW "skew"
#define PROPERTY_ANCHORPOINT "anchorPoint"
#define PROPERTY_SCALE "scale"
#define PROPERTY_ROTATION "rotation"
#define PROPERTY_ROTATIONX "rotationX"
#define PROPERTY_ROTATIONY "rotationY"
#define PROPERTY_TAG "tag"
#define PROPERTY_IGNOREANCHORPOINTFORPOSITION "ignoreAnchorPointForPosition"
#define PROPERTY_VISIBLE "visible"
#define ASSERT_FAIL_UNEXPECTED_PROPERTY(PROPERTY) cocos2d::log("Unexpected property: '%s'!\n", PROPERTY); assert(false)
#define ASSERT_FAIL_UNEXPECTED_PROPERTYTYPE(PROPERTYTYPE) cocos2d::log("Unexpected property type: '%d'!\n", PROPERTYTYPE); assert(false)
#define CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(T)
#define CCB_PURE_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD(T) virtual T createNode(cocos2d::Node pParent, cocosbuilder::CCBReader * ccbReader) = 0

宏定义说明

#define ASSERT_FAIL_UNEXPECTED_PROPERTY ( PROPERTY) cocos2d::log("Unexpected property: '%s'!\n", PROPERTY); assert(false)

#define ASSERT_FAIL_UNEXPECTED_PROPERTYTYPE ( PROPERTYTYPE) cocos2d::log("Unexpected property type: '%d'!\n", PROPERTYTYPE); assert(false)

#define CCB_PURE_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD ( T) virtual T createNode(cocos2d::Node pParent, cocosbuilder::CCBReader * ccbReader) = 0

#define CCB_VIRTUAL_NEW_AUTORELEASE_CREATECCNODE_METHOD ( T)

值:

virtual T createNode(cocos2d::Node pParent, cocosbuilder::CCBReader * ccbReader) { \

return T::create(); \

}

cocosbuilder::CCBReader

解析由CocosBuilder生成的CCBI文件

Definition: CCBReader.h:67

cocos2d::Node

:节点是场景图的基本元素。场景图的基本元素必须是节点对象或者是节点对象的子类。 一些常用的节点对象:Sce…

Definition: CCNode.h:104

#define PROPERTY_ANCHORPOINT "anchorPoint"

#define PROPERTY_CONTENTSIZE "contentSize"

#define PROPERTY_IGNOREANCHORPOINTFORPOSITION "ignoreAnchorPointForPosition"

#define PROPERTY_POSITION "position"

#define PROPERTY_ROTATION "rotation"

#define PROPERTY_ROTATIONX "rotationX"

#define PROPERTY_ROTATIONY "rotationY"

#define PROPERTY_SCALE "scale"

#define PROPERTY_SKEW "skew"

#define PROPERTY_TAG "tag"

#define PROPERTY_VISIBLE "visible"