cocos2d-x  3.0rc1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GUIDefine.h File Reference
#include "cocos2d.h"
#include "../../extensions/ExtensionMacros.h"
#include <string>
#include "cocostudio/ObjectFactory.h"

Macros

#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) \

Macro Definition Documentation

#define CREATE_CLASS_GUI_INFO (   className)    cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
var CREATE_CLASS_GUI_INFO (   var)    cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
local CREATE_CLASS_GUI_INFO (   local)    cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
#define
CREATE_CLASS_WIDGET_READER_INFO
(   className)    cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
var CREATE_CLASS_WIDGET_READER_INFO (   var)    cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
local
CREATE_CLASS_WIDGET_READER_INFO
(   local)    cocostudio::ObjectFactory::TInfo(#className, &className::createInstance) \
#define DECLARE_CLASS_GUI_INFO
Value:
public: \
static cocos2d::Ref* createInstance(void); \
var DECLARE_CLASS_GUI_INFO
Value:
public: \
static cocos2d::Ref* createInstance(void); \
local DECLARE_CLASS_GUI_INFO
Value:
public: \
static cocos2d::Ref* createInstance(void); \
#define
DECLARE_CLASS_WIDGET_READER_INFO
Value:
public: \
static cocos2d::Ref* createInstance(void); \
var
DECLARE_CLASS_WIDGET_READER_INFO
Value:
public: \
static cocos2d::Ref* createInstance(void); \
local
DECLARE_CLASS_WIDGET_READER_INFO
Value:
public: \
static cocos2d::Ref* createInstance(void); \
#define IMPLEMENT_CLASS_GUI_INFO (   className)
Value:
cocos2d::Ref* className::createInstance(void) \
{ \
return className::create(); \
} \
cocostudio::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \
var IMPLEMENT_CLASS_GUI_INFO (   var)
Value:
cocos2d::Ref* className::createInstance(void) \
{ \
return className::create(); \
} \
cocostudio::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \
local IMPLEMENT_CLASS_GUI_INFO (   local)
Value:
cocos2d::Ref* className::createInstance(void) \
{ \
return className::create(); \
} \
cocostudio::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \
#define
IMPLEMENT_CLASS_WIDGET_READER_INFO
(   className)
Value:
cocos2d::Ref* className::createInstance(void) \
{ \
return className::getInstance(); \
} \
cocostudio::ObjectFactory::TInfo className::Type(#className, &className::createInstance); \