Inherits: Control < CanvasItem < Node < Object

Inherited By: BoxContainer, CenterContainer, EditorProperty, GraphNode, GridContainer, MarginContainer, PanelContainer, ScrollContainer, SplitContainer, TabContainer, 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.


voidfit_child_in_rect ( Control child, Rect2 rect )
voidqueue_sort ( )


  • sort_children ( )

Emitted when sorting the children is needed.


  • 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.

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:31:12. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.