cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
WidgetReader Class Reference

#include <WidgetReader.h>

Inheritance diagram for WidgetReader:
CCObject WidgetReaderProtocol CCCopying ButtonReader CheckBoxReader ImageViewReader LabelAtlasReader LabelBMFontReader LabelReader LayoutReader LoadingBarReader SliderReader TextFieldReader

Public Member Functions

 WidgetReader ()
 WidgetReader ()
 WidgetReader ()
virtual ~WidgetReader ()
var ~WidgetReader ()
local ~WidgetReader ()
virtual void setPropsFromJsonDictionary (ui::Widget *widget, const rapidjson::Value &options)
local setPropsFromJsonDictionary ( local widget, local options)
virtual void setColorPropsFromJsonDictionary (ui::Widget *widget, const rapidjson::Value &options)
var setColorPropsFromJsonDictionary ( var widget, var options)
local setColorPropsFromJsonDictionary ( local widget, local options)
virtual void setPropsFromBinary (cocos2d::ui::Widget *widget, CocoLoader *pCocoLoader, stExpCocoNode *pCocoNode)
local setPropsFromBinary ( local widget, local pCocoLoader, local pCocoNode)
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (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)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static cocos2d::CCObjectcreateInstance (void)
local createInstance ()
static WidgetReadergetInstance ()
local getInstance ()
static void purge ()

Static Public Attributes

static
cocos2d::extension::ObjectFactory::TInfo 
Type

Protected Member Functions

void beginSetBasicProperties (cocos2d::ui::Widget *widget)
void endSetBasicProperties (cocos2d::ui::Widget *widget)
int valueToInt (std::string &value)
bool valueToBool (std::string &value)
float valueToFloat (std::string &value)
std::string getResourcePath (CocoLoader *pCocoLoader, stExpCocoNode *pCocoNode, cocos2d::ui::TextureResType texType)
var getResourcePath ( var pCocoLoader, var pCocoNode, var texType)
local getResourcePath ( local pCocoLoader, local pCocoNode, local texType)

Protected Attributes

float _sizePercentX
float _sizePercentY
var _sizePercentY
local _sizePercentY
float _positionPercentX
float _positionPercentY
float _width
float _height
cocos2d::ccColor3B _color
var _color
local _color
int _opacity
cocos2d::CCPoint _position
bool _isAdaptScreen
cocos2d::CCPoint _originalAnchorPoint
var _originalAnchorPoint
local _originalAnchorPoint
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Constructor & Destructor Documentation

var WidgetReader ( )
local WidgetReader ( )
virtual ~WidgetReader ( )
virtual
var ~WidgetReader ( )
virtual
local ~WidgetReader ( )
virtual

Member Function Documentation

void beginSetBasicProperties ( cocos2d::ui::Widget widget)
protected
var beginSetBasicProperties ( var  widget)
protected
local beginSetBasicProperties ( local  widget)
protected
static cocos2d::CCObject*
createInstance
( void  )
static
var createInstance (   )
static
local createInstance (   )
static
void endSetBasicProperties ( cocos2d::ui::Widget widget)
protected
var endSetBasicProperties ( var  widget)
protected
local endSetBasicProperties ( local  widget)
protected
static WidgetReader* getInstance ( )
static
var getInstance ( )
static
local getInstance ( )
static
std::string getResourcePath ( CocoLoader pCocoLoader,
stExpCocoNode pCocoNode,
cocos2d::ui::TextureResType  texType 
)
protected
var getResourcePath ( var  pCocoLoader,
var  pCocoNode,
var  texType 
)
protected
local getResourcePath ( local  pCocoLoader,
local  pCocoNode,
local  texType 
)
protected
static void purge ( )
static
var purge ( )
static
local purge ( )
static
virtual void
setColorPropsFromJsonDictionary
( ui::Widget widget,
const rapidjson::Value options 
)
virtual
var setColorPropsFromJsonDictionary ( var  widget,
var  options 
)
virtual
local
setColorPropsFromJsonDictionary
( local  widget,
local  options 
)
virtual
var setPropsFromBinary ( var  widget,
var  pCocoLoader,
var  pCocoNode 
)
virtual
local setPropsFromBinary ( local  widget,
local  pCocoLoader,
local  pCocoNode 
)
virtual
local setPropsFromJsonDictionary ( local  widget,
local  options 
)
virtual
bool valueToBool ( std::string &  value)
protected
var valueToBool ( var  value)
protected
local valueToBool ( local  value)
protected
float valueToFloat ( std::string &  value)
protected
var valueToFloat ( var  value)
protected
local valueToFloat ( local  value)
protected
int valueToInt ( std::string &  value)
protected
var valueToInt ( var  value)
protected
local valueToInt ( local  value)
protected

Member Data Documentation

cocos2d::ccColor3B _color
protected
var _color
protected
local _color
protected
float _height
protected
var _height
protected
local _height
protected
bool _isAdaptScreen
protected
var _isAdaptScreen
protected
local _isAdaptScreen
protected
int _opacity
protected
var _opacity
protected
local _opacity
protected
cocos2d::CCPoint
_originalAnchorPoint
protected
var _originalAnchorPoint
protected
local _originalAnchorPoint
protected
cocos2d::CCPoint _position
protected
var _position
protected
local _position
protected
float _positionPercentX
protected
var _positionPercentX
protected
local _positionPercentX
protected
float _positionPercentY
protected
var _positionPercentY
protected
local _positionPercentY
protected
float _sizePercentX
protected
var _sizePercentX
protected
local _sizePercentX
protected
float _sizePercentY
protected
var _sizePercentY
protected
local _sizePercentY
protected
float _width
protected
var _width
protected
local _width
protected
var Type
static
local Type
static

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