Class ccui.LinearLayoutParameter
- Defined in: UILayoutParameter.js
- Extends ccui.LayoutParameter
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
-
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