Container
Hereda: Control < CanvasItem < Node < Object
Heredado por: AspectRatioContainer, BoxContainer, CenterContainer, EditorProperty, FlowContainer, FoldableContainer, GraphElement, GridContainer, MarginContainer, PanelContainer, ScrollContainer, SplitContainer, SubViewportContainer, TabContainer
Base class for all GUI containers.
Descripción
Base class for all GUI containers. A Container automatically arranges its child controls in a certain way. This class can be inherited to make custom container types.
Tutoriales
Propiedades
mouse_filter |
|
Métodos
_get_allowed_size_flags_horizontal() virtual const |
|
_get_allowed_size_flags_vertical() virtual const |
|
void |
fit_child_in_rect(child: Control, rect: Rect2) |
void |
Señales
pre_sort_children() 🔗
Emitida cuando los hijos van a ser clasificados.
sort_children() 🔗
Emitida cuando se necesita ordenar a los hijos.
Constantes
NOTIFICATION_PRE_SORT_CHILDREN = 50 🔗
Notification just before children are going to be sorted, in case there's something to process beforehand.
NOTIFICATION_SORT_CHILDREN = 51 🔗
La notificación, para cuando se ordenan los hijos, debe ser obedecida inmediatamente.
Descripciones de Métodos
PackedInt32Array _get_allowed_size_flags_horizontal() virtual const 🔗
Implement to return a list of allowed horizontal SizeFlags for child nodes. This doesn't technically prevent the usages of any other size flags, if your implementation requires that. This only limits the options available to the user in the Inspector dock.
Note: Having no size flags is equal to having Control.SIZE_SHRINK_BEGIN. As such, this value is always implicitly allowed.
PackedInt32Array _get_allowed_size_flags_vertical() virtual const 🔗
Implement to return a list of allowed vertical SizeFlags for child nodes. This doesn't technically prevent the usages of any other size flags, if your implementation requires that. This only limits the options available to the user in the Inspector dock.
Note: Having no size flags is equal to having Control.SIZE_SHRINK_BEGIN. As such, this value is always implicitly allowed.
void fit_child_in_rect(child: Control, rect: Rect2) 🔗
Ajustar un control hijo en un rectángulo dado. Esto es principalmente una ayuda para crear clases de contenedores personalizados.
void queue_sort() 🔗
Encolar la reorganización de los hijos contenidos. Este método es llamado automáticamente, pero también puede ser llamado manualmente.