Class ccui.helper
- Defined in: UIHelper.js
Constructor Attributes | Constructor Name and Description |
---|---|
ccui.helper is the singleton object which is the Helper object contains some functions for seek widget
|
Method Summary
Class Detail
ccui.helper()
ccui.helper is the singleton object which is the Helper object contains some functions for seek widget
Method Detail
-
<static> ccui.helper.doLayout(rootNode)Refresh object and it's children layout state
- Parameters:
- {cc.Node} rootNode
-
<static> ccui.helper.restrictCapInsetRect(capInsets, textureSize)restrict capInsetSize, when the capInsets' width is larger than the textureSize, it will restrict to 0,
the height goes the same way as width. -
Finds a widget whose action tag equals to param name from root widget.
- Parameters:
- {ccui.Widget} root
- {Number} tag
- Returns:
- {ccui.Widget}
-
Finds a widget whose name equals to param name from root widget.
- Parameters:
- {ccui.Widget} root
- {String} name
- Returns:
- {ccui.Widget}
-
Finds a widget whose name equals to param name from root widget. RelativeLayout will call this method to find the widget witch is needed.
- Parameters:
- {ccui.Widget} root
- {String} name
- Returns:
- {ccui.Widget}
-
Finds a widget whose tag equals to param tag from root widget.
- Parameters:
- {ccui.Widget} root
- {number} tag
- Returns:
- {ccui.Widget}