W3cubDocs

/Godot 2.1

Container

Inherits: Control < CanvasItem < Node < Object

Inherited By: PanelContainer, GridContainer, ScrollContainer, MarginContainer, CenterContainer, GraphNode, SplitContainer, BoxContainer

Category: Core

Brief Description

Base node for containers.

Member Functions

void fit_child_in_rect ( Control child, Rect2 rect )
void 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 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

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

void queue_sort ( )

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

© 2014–2017 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/2.1/classes/class_container.html