mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
50 lines
1.7 KiB
ReStructuredText
50 lines
1.7 KiB
ReStructuredText
.. _class_BoxContainer:
|
|
|
|
BoxContainer
|
|
============
|
|
|
|
**Inherits:** :ref:`Container<class_container>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Inherited By:** :ref:`VBoxContainer<class_vboxcontainer>`, :ref:`ButtonGroup<class_buttongroup>`, :ref:`HBoxContainer<class_hboxcontainer>`, :ref:`ColorPicker<class_colorpicker>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Base class for Box containers.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------+------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_alignment<class_BoxContainer_get_alignment>` **(** **)** const |
|
|
+------------------------+------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_alignment<class_BoxContainer_set_alignment>` **(** :ref:`int<class_int>` alignment **)** |
|
|
+------------------------+------------------------------------------------------------------------------------------------------+
|
|
|
|
Numeric Constants
|
|
-----------------
|
|
|
|
- **ALIGN_BEGIN** = **0**
|
|
- **ALIGN_CENTER** = **1**
|
|
- **ALIGN_END** = **2**
|
|
|
|
Description
|
|
-----------
|
|
|
|
Base class for Box containers. It arranges children controls vertically or horizontally, and rearranges them automatically when their minimum size changes.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_BoxContainer_get_alignment:
|
|
|
|
- :ref:`int<class_int>` **get_alignment** **(** **)** const
|
|
|
|
.. _class_BoxContainer_set_alignment:
|
|
|
|
- void **set_alignment** **(** :ref:`int<class_int>` alignment **)**
|
|
|
|
|