Class ccui.LinearLayoutParameter

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

Method Summary

Class Detail

ccui.LinearLayoutParameter()
Base class for ccui.LinearLayoutParameter

Method Detail

  • <static> {ccui.LinearLayoutParameter} ccui.LinearLayoutParameter.create()
    allocates and initializes a LinearLayoutParameter.
    // example
    var uiLinearLayoutParameter = ccui.LinearLayoutParameter.create();
    Returns:
    {ccui.LinearLayoutParameter}
  • {Number} getGravity()
    Gets LinearGravity parameter for LayoutParameter.
    Returns:
    {Number}
  • setGravity(gravity)
    Sets LinearGravity parameter for LayoutParameter.
    Parameters:
    {Number} gravity