cocos2d-x
3.3
|
#include <CCSGUIReader.h>
Public Member Functions | |
cocos2d::ui::Widget * | widgetFromJsonFile (const char *fileName) |
cocos2d::ui::Widget * | widgetFromBinaryFile (const char *fileName) |
int | getVersionInteger (const char *str) |
void | storeFileDesignSize (const char *fileName, const cocos2d::Size &size) |
NA More... | |
const cocos2d::Size | getFileDesignSize (const char *fileName) const |
NA More... | |
void | setFilePath (const std::string &strFilePath) |
const std::string & | getFilePath () const |
void | registerTypeAndCallBack (const std::string &classType, cocos2d::ObjectFactory::Instance ins, Ref *object, SEL_ParseEvent callBack) |
void | registerTypeAndCallBack (const std::string &classType, cocos2d::ObjectFactory::InstanceFunc ins, Ref *object, SEL_ParseEvent callBack) |
ParseCallBackMap * | getParseCallBackMap () |
ParseObjectMap * | getParseObjectMap () |
![]() | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
NA NA More... | |
Static Public Member Functions | |
static GUIReader * | shareReader () |
static void | purgeGUIReader () |
static GUIReader * | getInstance () |
static void | destroyInstance () |
Protected Types | |
typedef std::map< std::string, SEL_ParseEvent > | ParseCallBackMap |
typedef std::map< std::string, Ref * > | ParseObjectMap |
Protected Member Functions | |
GUIReader () | |
~GUIReader () | |
![]() | |
Ref () | |
Constructor. More... | |
Protected Attributes | |
std::string | m_strFilePath |
cocos2d::ValueMap | _fileDesignSizes |
ParseCallBackMap | _mapParseSelector |
ParseObjectMap | _mapObject |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
const cocos2d::Size getFileDesignSize | ( | const char * | fileName | ) | const |
NA
|
inline |
|
static |
|
inline |
|
inline |
int getVersionInteger | ( | const char * | str | ) |
|
inlinestatic |
void registerTypeAndCallBack | ( | const std::string & | classType, |
cocos2d::ObjectFactory::Instance | ins, | ||
Ref * | object, | ||
SEL_ParseEvent | callBack | ||
) |
void registerTypeAndCallBack | ( | const std::string & | classType, |
cocos2d::ObjectFactory::InstanceFunc | ins, | ||
Ref * | object, | ||
SEL_ParseEvent | callBack | ||
) |
|
inline |
|
inlinestatic |
void storeFileDesignSize | ( | const char * | fileName, |
const cocos2d::Size & | size | ||
) |
NA
cocos2d::ui::Widget* widgetFromBinaryFile | ( | const char * | fileName | ) |
cocos2d::ui::Widget* widgetFromJsonFile | ( | const char * | fileName | ) |
|
protected |
|
protected |
|
protected |
|
protected |