Class ccui.RelativeLayoutParameter
- Defined in: UILayoutParameter.js
- Extends ccui.LayoutParameter
Constructor Attributes | Constructor Name and Description |
---|---|
The relative of layout parameter.
|
Method Summary
Class Detail
ccui.RelativeLayoutParameter()
The relative of layout parameter. Its layout parameter type is ccui.LayoutParameter.RELATIVE.
Field Detail
<static> <constant>
ccui.RelativeLayoutParameter.CENTER_IN_PARENT
The center in parent of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_ABOVE_CENTER
The location above center of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_ABOVE_LEFTALIGN
The location above left align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_ABOVE_RIGHTALIGN
The location above right align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_BELOW_CENTER
The location below center of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_BELOW_LEFTALIGN
The location below left align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_BELOW_RIGHTALIGN
The location below right align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_LEFT_OF_BOTTOMALIGN
The location left of bottom align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_LEFT_OF_CENTER
The location left of center of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_LEFT_OF_TOPALIGN
The location left of top align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_RIGHT_OF_BOTTOMALIGN
The location right of bottom align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_RIGHT_OF_CENTER
The location right of center of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.LOCATION_RIGHT_OF_TOPALIGN
The location right of top align of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.NONE
The none of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_BOTTOM_CENTER_HORIZONTAL
The parent's bottom center horizontal of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_LEFT_BOTTOM
The parent's left bottom of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_LEFT_CENTER_VERTICAL
The parent's left center vertical of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_RIGHT_BOTTOM
The parent's right bottom of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_RIGHT_CENTER_VERTICAL
The parent's right center vertical of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_TOP_CENTER_HORIZONTAL
The parent's top center horizontal of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_TOP_LEFT
The parent's top left of ccui.RelativeLayoutParameter's relative align.
<static> <constant>
ccui.RelativeLayoutParameter.PARENT_TOP_RIGHT
The parent's top right of ccui.RelativeLayoutParameter's relative align.
Method Detail
-
Allocates and initializes a RelativeLayoutParameter.
- Deprecated:
- since v3.0, please use new ccui.RelativeLayoutParameter() instead.
- Returns:
- {ccui.RelativeLayoutParameter}
-
ctor()The constructor of ccui.RelativeLayoutParameter
-
{Number} getAlign()Gets RelativeAlign parameter for LayoutParameter.
- Returns:
- {Number}
-
{string} getRelativeName()Gets a name in Relative Layout of LayoutParameter.
- Returns:
- {string}
-
{string} getRelativeToWidgetName()Gets the key of LayoutParameter. Witch widget named this is relative to.
- Returns:
- {string}
-
setAlign(align)Sets RelativeAlign parameter for LayoutParameter.
- Parameters:
- {Number} align
-
setRelativeName(name)Sets a name in Relative Layout for LayoutParameter.
- Parameters:
- {String} name
-
setRelativeToWidgetName(name)Sets a key for LayoutParameter. Witch widget named this is relative to.
- Parameters:
- {String} name