Class ccs.LayoutParameter

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccs.LayoutParameter

Method Summary

Class Detail

ccs.LayoutParameter()
Base class for ccs.LayoutParameter

Method Detail

  • <static> {ccs.LayoutParameter} ccs.LayoutParameter.create()
    allocates and initializes a LayoutParameter.
    // example
    var uiLayoutParameter = ccs.LayoutParameter.create();
    Returns:
    {ccs.LayoutParameter}
  • {ccs.UILayoutParameterType} getLayoutType()
    Gets LayoutParameterType of LayoutParameter.
    Returns:
    {ccs.UILayoutParameterType}
  • {ccs.Margin} getMargin()
    Gets Margin parameter of LayoutParameter.
    Returns:
    {ccs.Margin}
  • setMargin(margin)
    Sets Margin parameter for LayoutParameter.
    Parameters:
    {ccs.Margin} margin