Class ccs.LayoutParameter
- Defined in: UILayoutParameter.js
- Extends ccs.Class
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.LayoutParameter
|
Method Summary
Class Detail
ccs.LayoutParameter()
Base class for ccs.LayoutParameter
Method Detail
-
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