Class ccui.HBox
- Defined in: UIHBox.js
- Extends ccui.Layout
Constructor Attributes | Constructor Name and Description |
---|---|
The horizontal box of Cocos UI.
|
Method Summary
Class Detail
ccui.HBox()
The horizontal box of Cocos UI. Its layout type is ccui.Layout.LINEAR_HORIZONTAL.
Method Detail
-
Creates a HBox object
- Parameters:
- {cc.Size} size
- Deprecated:
- since v3.0, please use new ccui.HBox(size) instead.
- Returns:
- {ccui.HBox}
-
ctor(size)The constructor of ccui.HBox
- Parameters:
- {cc.Size} size Optional
-
{boolean} init()Initialize a HBox. please do not call this function by yourself, you should pass the parameters to constructor to initialize it.
- Returns:
- {boolean}
-
{boolean} initWithSize(size)Initializes a HBox with size.
- Parameters:
- size
- Returns:
- {boolean}