BoxContainer

Inherits: Container < Control < CanvasItem < Node < Object

Inherited By: ColorPicker, HBoxContainer, VBoxContainer

Base class for box containers.

Description

Arranges child Control nodes vertically or horizontally, and rearranges them automatically when their minimum size changes.

Properties

AlignMode alignment 0

Methods

void add_spacer ( bool begin )

Enumerations

enum AlignMode:

  • ALIGN_BEGIN = 0 --- Aligns children with the beginning of the container.
  • ALIGN_CENTER = 1 --- Aligns children with the center of the container.
  • ALIGN_END = 2 --- Aligns children with the end of the container.

Property Descriptions

Default 0
Setter set_alignment(value)
Getter get_alignment()

The alignment of the container's children (must be one of ALIGN_BEGIN, ALIGN_CENTER, or ALIGN_END).

Method Descriptions

  • void add_spacer ( bool begin )

Adds a Control node to the box as a spacer. If begin is true, it will insert the Control node in front of all other children.