github_url: | hide |
---|
Inherits: :ref:`Control<class_Control>` < :ref:`CanvasItem<class_CanvasItem>` < :ref:`Node<class_Node>` < :ref:`Object<class_Object>`
Inherited By: :ref:`BoxContainer<class_BoxContainer>`, :ref:`CenterContainer<class_CenterContainer>`, :ref:`EditorProperty<class_EditorProperty>`, :ref:`GraphNode<class_GraphNode>`, :ref:`GridContainer<class_GridContainer>`, :ref:`MarginContainer<class_MarginContainer>`, :ref:`PanelContainer<class_PanelContainer>`, :ref:`ScrollContainer<class_ScrollContainer>`, :ref:`SplitContainer<class_SplitContainer>`, :ref:`TabContainer<class_TabContainer>`, :ref:`ViewportContainer<class_ViewportContainer>`
Base node for containers.
Base node for containers. A Container
contains other controls and automatically arranges them in a certain way.
A Control can inherit this to create custom container classes.
:ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | O: 1 |
- sort_children ( )
Emitted when sorting the children is needed.
- NOTIFICATION_SORT_CHILDREN = 50 --- Notification for when sorting the children, it must be obeyed immediately.
- void fit_child_in_rect ( :ref:`Control<class_Control>` child, :ref:`Rect2<class_Rect2>` rect )
Fit a child control in a given rect. This is mainly a helper for creating custom container classes.
- void queue_sort ( )
Queue resort of the contained children. This is called automatically anyway, but can be called upon request.