1 Star 1 Fork 0

天天编程/godot-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
class_container.rst 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.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ttcode-net/godot-docs.git
git@gitee.com:ttcode-net/godot-docs.git
ttcode-net
godot-docs
godot-docs
master

搜索帮助