pandemonium_engine_docs/classes/class_container.rst

70 lines
3.1 KiB
ReStructuredText
Raw Normal View History

:github_url: hide
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the Container.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_Container:
Container
=========
**Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
**Inherited By:** :ref:`AspectRatioContainer<class_AspectRatioContainer>`, :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.
Description
-----------
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.
Methods
-------
+------+----------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`fit_child_in_rect<class_Container_method_fit_child_in_rect>` **(** :ref:`Control<class_Control>` child, :ref:`Rect2<class_Rect2>` rect **)** |
+------+----------------------------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`queue_sort<class_Container_method_queue_sort>` **(** **)** |
+------+----------------------------------------------------------------------------------------------------------------------------------------------------+
Signals
-------
.. _class_Container_signal_sort_children:
- **sort_children** **(** **)**
Emitted when sorting the children is needed.
Constants
---------
.. _class_Container_constant_NOTIFICATION_SORT_CHILDREN:
- **NOTIFICATION_SORT_CHILDREN** = **50** --- Notification for when sorting the children, it must be obeyed immediately.
Method Descriptions
-------------------
.. _class_Container_method_fit_child_in_rect:
- 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.
----
.. _class_Container_method_queue_sort:
- void **queue_sort** **(** **)**
Queue resort of the contained children. This is called automatically anyway, but can be called upon request.
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`