BoxContainer
Inherits: Container < Control < CanvasItem < Node < Object
Inherited By: ColorPicker, HBoxContainer, VBoxContainer
盒子容器的基类。
描述
垂直或水平排列子控件,并在其最小尺寸更改时自动重新排列。
属性
| ||
mouse_filter |
|
方法
void | add_spacer ( bool begin ) |
枚举
enum AlignMode:
ALIGN_BEGIN = 0 —- 将子项与容器的开端对齐。
ALIGN_CENTER = 1 —- 将子项与容器的中心对齐。
ALIGN_END = 2 —- 将子项与容器的末端对齐。
属性说明
- AlignMode alignment
Default |
|
Setter | set_alignment(value) |
Getter | get_alignment() |
容器子项的对齐方式,必须是 ALIGN_BEGIN、ALIGN_CENTER 或 ALIGN_END 之一。
方法说明
- void add_spacer ( bool begin )
将控件添加到盒子作为间隔。如果 true
, begin
将在其他子级之前插入间隔控件。