#include <WidgetReader.h>
|
DECLARE_CLASS_WIDGET_READER_INFO | WidgetReader () |
var | WidgetReader () |
local | WidgetReader () |
virtual | ~WidgetReader () |
virtual void | setPropsFromJsonDictionary (cocos2d::ui::Widget *widget, const rapidjson::Value &options) |
virtual void | setColorPropsFromJsonDictionary (cocos2d::ui::Widget *widget, const rapidjson::Value &options) |
local | setColorPropsFromJsonDictionary ( local widget, local options) |
virtual void | setPropsFromBinary (cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *pCocoNode) |
local | setPropsFromBinary ( local widget, local cocoLoader, local pCocoNode) |
virtual void | setPropsFromProtocolBuffers (cocos2d::ui::Widget *widget, const protocolbuffers::NodeTree &nodeTree) |
virtual void | setColorPropsFromProtocolBuffers (cocos2d::ui::Widget *widget, const protocolbuffers::NodeTree &nodeTree) |
virtual void | setPropsFromXML (cocos2d::ui::Widget *widget, const tinyxml2::XMLElement *objectData) |
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...
|
|
local | getReferenceCount () |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
virtual | ~WidgetReaderProtocol () |
var beginSetBasicProperties |
( |
var |
widget | ) |
|
|
protected |
local beginSetBasicProperties |
( |
local |
widget | ) |
|
|
protected |
var endSetBasicProperties |
( |
var |
widget | ) |
|
|
protected |
local endSetBasicProperties |
( |
local |
widget | ) |
|
|
protected |
var getResourcePath |
( |
var |
dict, |
|
|
var |
key, |
|
|
var |
texType |
|
) |
| |
|
protected |
local getResourcePath |
( |
local |
dict, |
|
|
local |
key, |
|
|
local |
texType |
|
) |
| |
|
protected |
var getResourcePath |
( |
var |
cocoLoader, |
|
|
var |
pCocoNode, |
|
|
var |
texType |
|
) |
| |
|
protected |
local getResourcePath |
( |
local |
cocoLoader, |
|
|
local |
pCocoNode, |
|
|
local |
texType |
|
) |
| |
|
protected |
var getResourcePath |
( |
var |
path, |
|
|
var |
texType |
|
) |
| |
|
protected |
local getResourcePath |
( |
local |
path, |
|
|
local |
texType |
|
) |
| |
|
protected |
void setAnchorPointForWidget |
( |
cocos2d::ui::Widget * |
widget, |
|
|
const rapidjson::Value & |
options |
|
) |
| |
|
protected |
var setAnchorPointForWidget |
( |
var |
widget, |
|
|
var |
options |
|
) |
| |
|
protected |
local setAnchorPointForWidget |
( |
local |
widget, |
|
|
local |
options |
|
) |
| |
|
protected |
var setAnchorPointForWidget |
( |
var |
widget, |
|
|
var |
nodeTree |
|
) |
| |
|
protected |
local setAnchorPointForWidget |
( |
local |
widget, |
|
|
local |
nodeTree |
|
) |
| |
|
protected |
virtual void
setColorPropsFromJsonDictionary |
( |
cocos2d::ui::Widget * |
widget, |
|
|
const rapidjson::Value & |
options |
|
) |
| |
|
virtual |
var setColorPropsFromJsonDictionary |
( |
var |
widget, |
|
|
var |
options |
|
) |
| |
|
virtual |
local
setColorPropsFromJsonDictionary |
( |
local |
widget, |
|
|
local |
options |
|
) |
| |
|
virtual |
var
setColorPropsFromProtocolBuffers |
( |
var |
widget, |
|
|
var |
nodeTree |
|
) |
| |
|
virtual |
local
setColorPropsFromProtocolBuffers |
( |
local |
widget, |
|
|
local |
nodeTree |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
var setPropsFromBinary |
( |
var |
widget, |
|
|
var |
cocoLoader, |
|
|
var |
pCocoNode |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
local setPropsFromBinary |
( |
local |
widget, |
|
|
local |
cocoLoader, |
|
|
local |
pCocoNode |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
virtual void
setPropsFromJsonDictionary |
( |
cocos2d::ui::Widget * |
widget, |
|
|
const rapidjson::Value & |
options |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
var setPropsFromJsonDictionary |
( |
var |
widget, |
|
|
var |
options |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
local setPropsFromJsonDictionary |
( |
local |
widget, |
|
|
local |
options |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
var setPropsFromProtocolBuffers |
( |
var |
widget, |
|
|
var |
nodeTree |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
local setPropsFromProtocolBuffers |
( |
local |
widget, |
|
|
local |
nodeTree |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
virtual void setPropsFromXML |
( |
cocos2d::ui::Widget * |
widget, |
|
|
const tinyxml2::XMLElement * |
objectData |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
var setPropsFromXML |
( |
var |
widget, |
|
|
var |
objectData |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
local setPropsFromXML |
( |
local |
widget, |
|
|
local |
objectData |
|
) |
| |
|
virtual |
Implements WidgetReaderProtocol.
Reimplemented in ButtonReader, CheckBoxReader, ImageViewReader, LayoutReader, ListViewReader, LoadingBarReader, PageViewReader, ScrollViewReader, SliderReader, TextBMFontReader, TextFieldReader, TextReader, and TextAtlasReader.
cocos2d::Vec2 _originalAnchorPoint |
|
protected |
local _originalAnchorPoint |
|
protected |
std::function<bool(const
std::string&)> valueToBool |
|
protected |
std::function<float(const
std::string&)> valueToFloat |
|
protected |
std::function<int(const
std::string&)> valueToInt |
|
protected |
The documentation for this class was generated from the following file:
- /Users/guanghui/cocos2d-x-v3/cocos/editor-support/cocostudio/WidgetReader/WidgetReader.h