#include <UIHelper.h>
Static Public Member Functions | |||
static Widget * | seekWidgetByTag (Widget *root, int tag) | ||
@ More... | |||
name value. | |||
Finds a widget whose name equals to param name from root widget.
| |||
static Widget * | seekWidgetByName (Widget *root, const std::string &name) | ||
static Widget * | seekActionWidgetByActionTag (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) | ||
Refresh object and it's children layout state. More... | |||
static void | changeLayoutSystemActiveState (bool bActive) | ||
static Rect | restrictCapInsetRect (const Rect &capInsets, const Size &textureSize) | ||
restrict capInsetSize, when the capInsets's width is larger than the textureSize, it will restrict to 0, the height goes the same way as width. More... | |||
|
static |
|
static |
Refresh object and it's children layout state.
rootNode | object which will be changed |
|
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 = "中国".
start | The start position of the substring. |
length | The length of the substring in UTF8 count |
restrict capInsetSize, when the capInsets's width is larger than the textureSize, it will restrict to 0, the height goes the same way as width.
capInsets | A user defined capInsets. |
textureSize | The size of a scale9enabled texture |