.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_Container: Container ========= **Inherits:** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`PanelContainer`, :ref:`GridContainer`, :ref:`ScrollContainer`, :ref:`ViewportContainer`, :ref:`MarginContainer`, :ref:`CenterContainer`, :ref:`GraphNode`, :ref:`SplitContainer`, :ref:`BoxContainer` **Category:** Core Brief Description ----------------- Base node for containers. Member Functions ---------------- +-------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`fit_child_in_rect` **(** :ref:`Control` child, :ref:`Rect2` rect **)** | +-------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`queue_sort` **(** **)** | +-------+-----------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **sort_children** **(** **)** Emitted when sorting the children is needed. Numeric Constants ----------------- - **NOTIFICATION_SORT_CHILDREN** = **50** --- Notification for when sorting the children, it must be obeyed immediately. Description ----------- Base node for containers. A :ref:`Container` contains other controls and automatically arranges them in a certain way. A Control can inherit this to create custom container classes. Member Function Description --------------------------- .. _class_Container_fit_child_in_rect: - void **fit_child_in_rect** **(** :ref:`Control` child, :ref:`Rect2` rect **)** Fit a child control in a given rect. This is mainly a helper for creating custom container classes. .. _class_Container_queue_sort: - void **queue_sort** **(** **)** Queue resort of the contained children. This is called automatically anyway, but can be called upon request.