cocos2d-x  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
WidgetPropertiesReader Class Referenceabstract

#include <CCSGUIReader.h>

Inheritance diagram for WidgetPropertiesReader:
Ref WidgetPropertiesReader0250 WidgetPropertiesReader0300

Public Member Functions

virtual cocos2d::ui::WidgetcreateWidget (const rapidjson::Value &dic, const char *fullPath, const char *fileName)=0
virtual cocos2d::ui::WidgetwidgetFromJsonDictionary (const rapidjson::Value &data)=0
virtual void setPropsForAllWidgetFromJsonDictionary (WidgetReaderProtocol *reader, cocos2d::ui::Widget *widget, const rapidjson::Value &options)=0
virtual void setPropsForAllCustomWidgetFromJsonDictionary (const std::string &classType, cocos2d::ui::Widget *widget, const rapidjson::Value &customOptions)=0
virtual cocos2d::ui::WidgetcreateWidgetFromBinary (CocoLoader *cocoLoader, stExpCocoNode *pCocoNode, const char *fileName)=0
virtual cocos2d::ui::WidgetwidgetFromBinary (CocoLoader *cocoLoader, stExpCocoNode *pCocoNode)=0
virtual void setPropsForAllWidgetFromBinary (WidgetReaderProtocol *reader, cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *pCocoNode)=0
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Protected Member Functions

void setAnchorPointForWidget (cocos2d::ui::Widget *widget, const rapidjson::Value &options)
std::string getWidgetReaderClassName (const std::string &classname)
std::string getWidgetReaderClassName (cocos2d::ui::Widget *widget)
std::string getGUIClassName (const std::string &name)
cocos2d::ui::WidgetcreateGUI (const std::string &classname)
WidgetReaderProtocolcreateWidgetReaderProtocol (const std::string &classname)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Protected Attributes

std::string m_strFilePath
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Member Function Documentation

cocos2d::ui::Widget* createGUI ( const std::string &  classname)
protected
virtual cocos2d::ui::Widget*
createWidget
( const rapidjson::Value &  dic,
const char *  fullPath,
const char *  fileName 
)
pure virtual
virtual cocos2d::ui::Widget*
createWidgetFromBinary
( CocoLoader cocoLoader,
stExpCocoNode pCocoNode,
const char *  fileName 
)
pure virtual
WidgetReaderProtocol*
createWidgetReaderProtocol
( const std::string &  classname)
protected
std::string getGUIClassName ( const std::string &  name)
protected
std::string
getWidgetReaderClassName
( const std::string &  classname)
protected
std::string
getWidgetReaderClassName
( cocos2d::ui::Widget widget)
protected
void setAnchorPointForWidget ( cocos2d::ui::Widget widget,
const rapidjson::Value &  options 
)
protected
virtual void
setPropsForAllCustomWidgetFromJsonDictionary
( const std::string &  classType,
cocos2d::ui::Widget widget,
const rapidjson::Value &  customOptions 
)
pure virtual
virtual void
setPropsForAllWidgetFromBinary
( WidgetReaderProtocol reader,
cocos2d::ui::Widget widget,
CocoLoader cocoLoader,
stExpCocoNode pCocoNode 
)
pure virtual
virtual void
setPropsForAllWidgetFromJsonDictionary
( WidgetReaderProtocol reader,
cocos2d::ui::Widget widget,
const rapidjson::Value &  options 
)
pure virtual
virtual cocos2d::ui::Widget*
widgetFromBinary
( CocoLoader cocoLoader,
stExpCocoNode pCocoNode 
)
pure virtual
virtual cocos2d::ui::Widget*
widgetFromJsonDictionary
( const rapidjson::Value &  data)
pure virtual

Member Data Documentation

std::string m_strFilePath
protected

The documentation for this class was generated from the following file: