#include <GUIReader.h>
Public Member Functions | |
GUIReader () | |
~GUIReader () | |
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::CCSize &size) |
const cocos2d::CCSize | getFileDesignSize (const char *fileName) const |
void | setFilePath (const std::string &strFilePath) |
const std::string & | getFilePath () const |
void | registerTypeAndCallBack (const std::string &classType, ObjectFactory::Instance ins, CCObject *object, SEL_ParseEvent callBack) |
ParseCallBackMap | getParseCallBackMap () |
ParseObjectMap | getParseObjectMap () |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static GUIReader * | shareReader () |
static void | purge () |
Protected Types | |
typedef std::map< std::string, SEL_ParseEvent > | ParseCallBackMap |
typedef std::map< std::string, CCObject * > | ParseObjectMap |
Protected Attributes | |
std::string | m_strFilePath |
CCDictionary * | _fileDesignSizes |
ParseCallBackMap | _mapParseSelector |
ParseObjectMap | _mapObject |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
Additional Inherited Members | |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
|
protected |
|
protected |
GUIReader | ( | ) |
~GUIReader | ( | ) |
const cocos2d::CCSize getFileDesignSize |
( | const char * | fileName | ) | const |
|
inline |
|
inline |
|
inline |
int getVersionInteger | ( | const char * | str | ) |
|
static |
void registerTypeAndCallBack | ( | const std::string & | classType, |
ObjectFactory::Instance | ins, | ||
CCObject * | object, | ||
SEL_ParseEvent | callBack | ||
) |
|
inline |
|
static |
void storeFileDesignSize | ( | const char * | fileName, |
const cocos2d::CCSize & | size | ||
) |
cocos2d::ui::Widget* widgetFromBinaryFile |
( | const char * | fileName | ) |
cocos2d::ui::Widget* widgetFromJsonFile |
( | const char * | fileName | ) |
|
protected |
|
protected |
|
protected |
|
protected |