Class ccui.LayoutParameter

Class Summary
Constructor Attributes Constructor Name and Description
 
Layout parameter contains a margin and layout parameter type.

Method Summary

Class Detail

ccui.LayoutParameter()
Layout parameter contains a margin and layout parameter type. It uses for ccui.LayoutManager.

Field Detail

<static> <constant> ccui.LayoutParameter.LINEAR
The linear of ccui.LayoutParameter's type.
<static> <constant> ccui.LayoutParameter.NONE
The none of ccui.LayoutParameter's type.
<static> <constant> ccui.LayoutParameter.RELATIVE
The relative of ccui.LayoutParameter's type.

Method Detail

  • Clones a ccui.LayoutParameter object from itself.
    Returns:
    {ccui.LayoutParameter}
  • <static> {ccui.LayoutParameter} ccui.LayoutParameter.create()
    allocates and initializes a LayoutParameter.
    // example
    var uiLayoutParameter = ccui.LayoutParameter.create();
    Returns:
    {ccui.LayoutParameter}
  • ctor()
    The constructor of ccui.LayoutParameter.
  • {Number} getLayoutType()
    Gets LayoutParameterType of LayoutParameter.
    Returns:
    {Number}
  • {ccui.Margin} getMargin()
    Gets Margin of LayoutParameter.
    Returns:
    {ccui.Margin}
  • setMargin(margin)
    Sets Margin to LayoutParameter.
    Parameters:
    {ccui.Margin} margin