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

AlignmentMode

alignment

0

Methods

Control

add_spacer ( bool begin )

Enumerations

enum AlignmentMode:

  • ALIGNMENT_BEGIN = 0

  • ALIGNMENT_CENTER = 1

  • ALIGNMENT_END = 2

Property Descriptions

Default

0

Setter

set_alignment(value)

Getter

get_alignment()

The alignment of the container's children (must be one of ALIGNMENT_BEGIN, ALIGNMENT_CENTER, or ALIGNMENT_END).

Method Descriptions

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.