BoxContainer

Inherits: Container < Control < CanvasItem < Node < Object

Inherited By: ColorPicker, HBoxContainer, VBoxContainer

Base class for box containers.

Description

Arranges child controls vertically or horizontally, and rearranges the controls automatically when their minimum size changes.

Properties

AlignModealignment0
MouseFiltermouse_filterO: 1

Methods

voidadd_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

Default0
Setterset_alignment(value)
Getterget_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 to the box as a spacer. If true, begin will insert the spacer control in front of other children.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.