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

  • copyProperties(model)
    copy properties
    Parameters:
    {ccui.LinearLayoutParameter} model
  • <static> {ccui.LinearLayoutParameter} ccui.LinearLayoutParameter.create()
    allocates and initializes a LinearLayoutParameter.
    // example
    var uiLinearLayoutParameter = ccui.LinearLayoutParameter.create();
    Returns:
    {ccui.LinearLayoutParameter}
  • {ccui.LinearLayoutParameter} createCloneInstance()
    create clone instance.
    Returns:
    {ccui.LinearLayoutParameter}
  • {ccui.LINEAR_GRAVITY_NONE|ccui.LINEAR_GRAVITY_TOP|ccui.LINEAR_GRAVITY_RIGHT|ccui.LINEAR_GRAVITY_BOTTOM|ccui.LINEAR_GRAVITY_CENTER_VERTICAL|ccui.LINEAR_GRAVITY_CENTER_HORIZONTAL} getGravity()
    Gets LinearGravity parameter for LayoutParameter.
    Returns:
    {ccui.LINEAR_GRAVITY_NONE|ccui.LINEAR_GRAVITY_TOP|ccui.LINEAR_GRAVITY_RIGHT|ccui.LINEAR_GRAVITY_BOTTOM|ccui.LINEAR_GRAVITY_CENTER_VERTICAL|ccui.LINEAR_GRAVITY_CENTER_HORIZONTAL}
  • setGravity(gravity)
    Sets LinearGravity parameter for LayoutParameter.
    Parameters:
    {ccui.LINEAR_GRAVITY_NONE|ccui.LINEAR_GRAVITY_TOP|ccui.LINEAR_GRAVITY_RIGHT|ccui.LINEAR_GRAVITY_BOTTOM|ccui.LINEAR_GRAVITY_CENTER_VERTICAL|ccui.LINEAR_GRAVITY_CENTER_HORIZONTAL} gravity