BoxContainer

Inherits: Container < Control < CanvasItem < Node < Object

Inherited By: ColorPicker, HBoxContainer, VBoxContainer

Clase de base para contenedores de caja.

Descripción

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

Propiedades

AlignMode

alignment

0

MouseFilter

mouse_filter

1 (overrides Control)

Métodos

void

add_spacer ( bool begin )

Enumeraciones

enum AlignMode:

  • ALIGN_BEGIN = 0 --- Alinea a los niños con el principio del contenedor.

  • ALIGN_CENTER = 1 --- Alinea a los niños con el centro del contenedor.

  • ALIGN_END = 2 --- Alinea a los niños con el final del contenedor.

Descripciones de Propiedades

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).

Descripciones de Métodos

  • 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.