Class ccs.UILayoutParameter
- Defined in: UILayoutParameter.js
- Extends ccs.Class
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.LayoutParameter
|
Method Summary
Class Detail
ccs.UILayoutParameter()
Base class for ccs.LayoutParameter
Method Detail
-
allocates and initializes a UILayoutParameter.
// example var uiLayoutParameter = ccs.UILayoutParameter.create();
- Returns:
- {ccs.UILayoutParameter}
-
{ccs.UILayoutParameterType} getLayoutType()Gets LayoutParameterType of LayoutParameter.
- Returns:
- {ccs.UILayoutParameterType}
-
{ccs.UIMargin} getMargin()Gets Margin parameter of LayoutParameter.
- Returns:
- {ccs.UIMargin}
-
setMargin(margin)Sets Margin parameter for LayoutParameter.
- Parameters:
- {ccs.UIMargin} margin