Container

Inherits: Control < CanvasItem < Node < Object Inherited By: AspectRatioContainer, BoxContainer, CenterContainer, EditorProperty, GraphNode, GridContainer, MarginContainer, PanelContainer, ScrollContainer, SplitContainer, TabContainer, ViewportContainer Base node for containers.

Description

Container contains other controls and automatically arranges them in a certain way. A Control can inherit this to create custom container classes.

Methods

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_child_in_rect ( Control child, Rect2 rect ) Fit a child control in a given rect. This is mainly a helper for creating custom container classes.

  • queue_sort ( ) Queue resort of the contained children. This is called automatically anyway, but can be called upon request.