Class ccui.helper

Class Summary
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.
    Parameters:
    {cc.Rect} capInsets
    {cc.Size} textureSize
  • <static> {ccui.Widget} ccui.helper.seekActionWidgetByActionTag(root, tag)
    Finds a widget whose action tag equals to param name from root widget.
    Parameters:
    {ccui.Widget} root
    {Number} tag
    Returns:
    {ccui.Widget}
  • <static> {ccui.Widget} ccui.helper.seekWidgetByName(root, name)
    Finds a widget whose name equals to param name from root widget.
    Parameters:
    {ccui.Widget} root
    {String} name
    Returns:
    {ccui.Widget}
  • <static> {ccui.Widget} ccui.helper.seekWidgetByRelativeName(root, name)
    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}
  • <static> {ccui.Widget} ccui.helper.seekWidgetByTag(root, tag)
    Finds a widget whose tag equals to param tag from root widget.
    Parameters:
    {ccui.Widget} root
    {number} tag
    Returns:
    {ccui.Widget}