Skip to content

Latest commit

 

History

History
73 lines (44 loc) · 2.99 KB

class_container.rst

File metadata and controls

73 lines (44 loc) · 2.99 KB
github_url:hide

Container

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.

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.

Properties

:ref:`MouseFilter<enum_Control_MouseFilter>` mouse_filter O: 1

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

  • sort_children ( )

Emitted when sorting the children is needed.

Constants

  • NOTIFICATION_SORT_CHILDREN = 50 --- Notification for when sorting the children, it must be obeyed immediately.

Method Descriptions

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.