Class ccui.LayoutParameter

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

Method Summary

Class Detail

ccui.LayoutParameter()
Base class for ccui.LayoutParameter

Method Detail

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