cocos2d-x  3.3rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Helper Class Reference

#include <UIHelper.h>

Static Public Member Functions

static WidgetseekWidgetByTag (Widget *root, int tag)
 @ More...
 
name value.

Finds a widget whose name equals to param name from root widget.

Parameters
rootwidget which will be seeked.
Returns
finded result.
static WidgetseekWidgetByName (Widget *root, const std::string &name)
static WidgetseekActionWidgetByActionTag (Widget *root, int tag)
static std::string getSubStringOfUTF8String (const std::string &str, std::string::size_type start, std::string::size_type length)
 Get a UTF8 substring from a std::string with a given start position and length Sample: std::string str = "中国中国中国"; substr = getSubStringOfUTF8String(str,0,2) will = "中国". More...
 
static void doLayout (Node *rootNode)
static void changeLayoutSystemActiveState (bool bActive)

Member Function Documentation

static void
changeLayoutSystemActiveState
( bool  bActive)
static
static void doLayout ( Node rootNode)
static
static std::string
getSubStringOfUTF8String
( const std::string &  str,
std::string::size_type  start,
std::string::size_type  length 
)
static

Get a UTF8 substring from a std::string with a given start position and length Sample: std::string str = "中国中国中国"; substr = getSubStringOfUTF8String(str,0,2) will = "中国".

Parameters
startThe start position of the substring.
lengthThe length of the substring in UTF8 count
Returns
a UTF8 substring
static Widget*
seekActionWidgetByActionTag
( Widget root,
int  tag 
)
static
static Widget* seekWidgetByName ( Widget root,
const std::string &  name 
)
static
static Widget* seekWidgetByTag ( Widget root,
int  tag 
)
static

@

@

@


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