|
| static Widget * | seekWidgetByTag (Widget *root, int tag) |
| | Find a widget with a specific tag from root widget.
|
| static Widget * | seekWidgetByName (Widget *root, std::string_view name) |
| | Find a widget with a specific name from root widget.
|
| static Widget * | seekActionWidgetByActionTag (Widget *root, int tag) |
| | Find a widget with a specific action tag from root widget This search will be recursive through all child widgets.
|
| static std::string | getSubStringOfUTF8String (std::string_view 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 = "中国".
|
| static void | doLayout (Node *rootNode) |
| | Refresh object and it's children layout state.
|
| static void | changeLayoutSystemActiveState (bool active) |
| | Change the active property of Layout's.
|
| static Rect | restrictCapInsetRect (const Rect &capInsets, const Vec2 &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.
|
| static Rect | convertBoundingBoxToScreen (Node *node) |
| | Convert a node's boundingBox rect into screen coordinates.
|
| static void | setDesignSizeFixedEdge (const Vec2 &designSize) |
| | adatpe design size with fixed edge, normally, use this function for screen adatpe
|
| static void | setDesignSizeNoBorder (const Vec2 &designSize) |
| | adapte design size with no border
|
|
static Vec2 | getNodeGroupSize (const std::vector< ax::Node * > &nodes) |
| | Get node group size.
|
|
static void | setNodeGroupSize (const std::vector< ax::Node * > &nodes, const Vec2 &newSize) |
| | Set nodes group size.
|
|
static float | getNodeGroupLeft (const std::vector< ax::Node * > &nodes) |
| | Get Node group left.
|
|
static float | getNodeGroupTop (const std::vector< ax::Node * > &nodes) |
| | Get node group top.
|
|
static float | getNodeGroupRight (const std::vector< ax::Node * > &nodes) |
| | Get node group right.
|
|
static float | getNodeGroupBottom (const std::vector< ax::Node * > &nodes) |
| | Get node group bottom.
|
| static void | centerHorizontally (const std::vector< ax::Node * > &nodes) |
| | Center horiz to parent.
|
| static void | centerVertically (const std::vector< ax::Node * > &nodes) |
| | Center vertical to parent.
|
| static void | centerToParent (const std::vector< ax::Node * > &nodes) |
| | Center to parent.
|
| static void | alignLefts (const std::vector< ax::Node * > &nodes) |
| | Align lefts.
|
| static void | alignRights (const std::vector< ax::Node * > &nodes) |
| | Align rights.
|
| static void | alignTops (const std::vector< ax::Node * > &nodes) |
| | Align tops.
|
| static void | alignBottoms (const std::vector< ax::Node * > &nodes) |
| | Align bottoms.
|
| static void | alignHorizontals (const std::vector< ax::Node * > &nodes) |
| | Align horiz.
|
| static void | alignVerticals (const std::vector< ax::Node * > &nodes) |
| | Align vertical.
|
| static void | alignCenters (const std::vector< ax::Node * > &nodes) |
| | Align centers.
|
| static void | makeSameWidth (const std::vector< ax::Node * > &nodes) |
| | Make same width.
|
| static void | makeSameHeight (const std::vector< ax::Node * > &nodes) |
| | Make same height.
|
| static void | makeSameSize (const std::vector< ax::Node * > &nodes) |
| | Make same size.
|
| static void | makeHorizontalSpacingEqual (std::vector< ax::Node * > &nodes) |
| | Make horiz spacing equal.
|
| static void | makeVerticalSpacingEqual (std::vector< ax::Node * > &nodes) |
| | Make vertical spacing equal.
|
| static void | increaseHorizontalSpacing (std::vector< ax::Node * > &nodes, float theSpacing) |
| | Increease horiz spacing.
|
| static void | increaseVerticalSpacing (std::vector< ax::Node * > &nodes, float theSpacing) |
| | Increase vertical spacing.
|
| static void | decreaseHorizontalSpacing (std::vector< ax::Node * > &nodes, float theSpacing) |
| | Decrease horiz spacing.
|
| static void | decreaseVerticalSpacing (std::vector< ax::Node * > &nodes, float theSpacing) |
| | Decrease vertical spacing.
|
| static void | removeHorizontalSpacing (const std::vector< ax::Node * > &nodes) |
| | Remove horiz spacing.
|
| static void | removeVerticalSpacing (const std::vector< ax::Node * > &nodes) |
| | Remove Vertical spacing.
|
| static void | makeHorizontalSpacingEqual (const std::vector< ax::Node * > &nodes, float theSpacing) |
| | maybe for internal use
|
| static void | makeVerticalSpacingEqual (const std::vector< ax::Node * > &nodes, float theSpacing) |
| | maybe for internal use
|