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

#include <PageViewReader.h>

Inheritance diagram for PageViewReader:
LayoutReader WidgetReader Ref WidgetReaderProtocol NodeReaderProtocol

Public Member Functions

 PageViewReader ()
virtual ~PageViewReader ()
virtual void setPropsFromJsonDictionary (cocos2d::ui::Widget *widget, const rapidjson::Value &options)
local setPropsFromJsonDictionary ( local widget, local options)
virtual void setPropsFromBinary (cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
local setPropsFromBinary ( local widget, local cocoLoader, local cocoNode)
flatbuffers::Offset
< flatbuffers::Table > 
createOptionsWithFlatBuffers (const tinyxml2::XMLElement *objectData, flatbuffers::FlatBufferBuilder *builder)
local createOptionsWithFlatBuffers ( local objectData, local builder)
void setPropsWithFlatBuffers (cocos2d::Node *node, const flatbuffers::Table *pageViewOptions)
cocos2d::Node * createNodeWithFlatBuffers (const flatbuffers::Table *pageViewOptions)
int getResourceType (std::string key)
- Public Member Functions inherited from LayoutReader
 LayoutReader ()
 LayoutReader ()
 LayoutReader ()
virtual ~LayoutReader ()
int getResourceType (std::string key)
- Public Member Functions inherited from WidgetReader
 WidgetReader ()
virtual ~WidgetReader ()
virtual void setColorPropsFromJsonDictionary (cocos2d::ui::Widget *widget, const rapidjson::Value &options)
local setColorPropsFromJsonDictionary ( local widget, local options)
flatbuffers::Offset
< flatbuffers::Table > 
createOptionsWithFlatBuffers (const tinyxml2::XMLElement *objectData, flatbuffers::FlatBufferBuilder *builder)
local createOptionsWithFlatBuffers ( local objectData, local builder)
void setPropsWithFlatBuffers (cocos2d::Node *node, const flatbuffers::Table *widgetOptions)
void setLayoutComponentPropsWithFlatBuffers (cocos2d::Node *node, const flatbuffers::Table *widgetOptions)
cocos2d::Node * createNodeWithFlatBuffers (const flatbuffers::Table *widgetOptions)
- Public Member Functions inherited from Ref
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 ()
- Public Member Functions inherited from WidgetReaderProtocol
virtual ~WidgetReaderProtocol ()
- Public Member Functions inherited from NodeReaderProtocol
 NodeReaderProtocol ()
virtual ~NodeReaderProtocol ()

Static Public Member Functions

static PageViewReader * getInstance ()
static void purge ()
- Static Public Member Functions inherited from LayoutReader
static LayoutReader * getInstance ()
static void purge ()
- Static Public Member Functions inherited from WidgetReader
static WidgetReader * getInstance ()
static void purge ()
local purge ()

Additional Inherited Members

- Protected Member Functions inherited from WidgetReader
std::string getResourcePath (const rapidjson::Value &dict, const std::string &key, cocos2d::ui::Widget::TextureResType texType)
local getResourcePath ( local dict, local key, local texType)
void setAnchorPointForWidget (cocos2d::ui::Widget *widget, const rapidjson::Value &options)
std::string getResourcePath (CocoLoader *cocoLoader, stExpCocoNode *pCocoNode, cocos2d::ui::Widget::TextureResType texType)
var getResourcePath ( var cocoLoader, var pCocoNode, var texType)
local getResourcePath ( local cocoLoader, local pCocoNode, local texType)
std::string getResourcePath (const std::string &path, cocos2d::ui::Widget::TextureResType texType)
void beginSetBasicProperties (cocos2d::ui::Widget *widget)
void endSetBasicProperties (cocos2d::ui::Widget *widget)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 
- Protected Attributes inherited from WidgetReader
std::function< int(const
std::string &)> 
valueToInt
local valueToInt
std::function< bool(const
std::string &)> 
valueToBool
var valueToBool
local valueToBool
std::function< float(const
std::string &)> 
valueToFloat
var valueToFloat
local valueToFloat
float _sizePercentX
float _sizePercentY
float _positionPercentX
float _positionPercentY
float _width
float _height
cocos2d::Color3B _color
var _color
local _color
int _opacity
cocos2d::Vec2 _position
bool _isAdaptScreen
cocos2d::Vec2 _originalAnchorPoint
var _originalAnchorPoint
local _originalAnchorPoint
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Constructor & Destructor Documentation

var PageViewReader ( )
local PageViewReader ( )
virtual ~PageViewReader ( )
virtual
var ~PageViewReader ( )
virtual
local ~PageViewReader ( )
virtual

Member Function Documentation

cocos2d::Node*
createNodeWithFlatBuffers
( const flatbuffers::Table *  pageViewOptions)
virtual

Reimplemented from LayoutReader.

var createNodeWithFlatBuffers ( var  pageViewOptions)
virtual

Reimplemented from LayoutReader.

local createNodeWithFlatBuffers ( local  pageViewOptions)
virtual

Reimplemented from LayoutReader.

flatbuffers::Offset
<flatbuffers::Table>
createOptionsWithFlatBuffers
( const tinyxml2::XMLElement *  objectData,
flatbuffers::FlatBufferBuilder *  builder 
)
virtual

Reimplemented from LayoutReader.

var createOptionsWithFlatBuffers ( var  objectData,
var  builder 
)
virtual

Reimplemented from LayoutReader.

local createOptionsWithFlatBuffers ( local  objectData,
local  builder 
)
virtual

Reimplemented from LayoutReader.

static PageViewReader* getInstance ( )
static
var getInstance ( )
static
local getInstance ( )
static
int getResourceType ( std::string  key)
var getResourceType ( var  key)
local getResourceType ( local  key)
static void purge ( )
static
var purge ( )
static
local purge ( )
static
virtual void setPropsFromBinary ( cocos2d::ui::Widget *  widget,
CocoLoader *  cocoLoader,
stExpCocoNode *  cocoNode 
)
virtual

Reimplemented from LayoutReader.

var setPropsFromBinary ( var  widget,
var  cocoLoader,
var  cocoNode 
)
virtual

Reimplemented from LayoutReader.

local setPropsFromBinary ( local  widget,
local  cocoLoader,
local  cocoNode 
)
virtual

Reimplemented from LayoutReader.

virtual void
setPropsFromJsonDictionary
( cocos2d::ui::Widget *  widget,
const rapidjson::Value &  options 
)
virtual

Reimplemented from LayoutReader.

var setPropsFromJsonDictionary ( var  widget,
var  options 
)
virtual

Reimplemented from LayoutReader.

local setPropsFromJsonDictionary ( local  widget,
local  options 
)
virtual

Reimplemented from LayoutReader.

void setPropsWithFlatBuffers ( cocos2d::Node *  node,
const flatbuffers::Table *  pageViewOptions 
)
virtual

Reimplemented from LayoutReader.

var setPropsWithFlatBuffers ( var  node,
var  pageViewOptions 
)
virtual

Reimplemented from LayoutReader.

local setPropsWithFlatBuffers ( local  node,
local  pageViewOptions 
)
virtual

Reimplemented from LayoutReader.


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