mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
87 lines
3.9 KiB
ReStructuredText
87 lines
3.9 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the BoxContainer.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _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:`ColorPicker<class_ColorPicker>`, :ref:`HBoxContainer<class_HBoxContainer>`, :ref:`VBoxContainer<class_VBoxContainer>`
|
|
|
|
Clase de base para contenedores de caja.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
Arranges child controls vertically or horizontally, and rearranges the controls automatically when their minimum size changes.
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+-----------------------------------------------+---------------------------------------------------------+-----------------------------------------------------------------------+
|
|
| :ref:`AlignMode<enum_BoxContainer_AlignMode>` | :ref:`alignment<class_BoxContainer_property_alignment>` | ``0`` |
|
|
+-----------------------------------------------+---------------------------------------------------------+-----------------------------------------------------------------------+
|
|
| :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``1`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
|
|
+-----------------------------------------------+---------------------------------------------------------+-----------------------------------------------------------------------+
|
|
|
|
Métodos
|
|
--------------
|
|
|
|
+------+---------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`add_spacer<class_BoxContainer_method_add_spacer>` **(** :ref:`bool<class_bool>` begin **)** |
|
|
+------+---------------------------------------------------------------------------------------------------+
|
|
|
|
Enumeraciones
|
|
--------------------------
|
|
|
|
.. _enum_BoxContainer_AlignMode:
|
|
|
|
.. _class_BoxContainer_constant_ALIGN_BEGIN:
|
|
|
|
.. _class_BoxContainer_constant_ALIGN_CENTER:
|
|
|
|
.. _class_BoxContainer_constant_ALIGN_END:
|
|
|
|
enum **AlignMode**:
|
|
|
|
- **ALIGN_BEGIN** = **0** --- Alinea a los niños con el principio del contenedor.
|
|
|
|
- **ALIGN_CENTER** = **1** --- Alinea a los niños con el centro del contenedor.
|
|
|
|
- **ALIGN_END** = **2** --- Alinea a los niños con el final del contenedor.
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_BoxContainer_property_alignment:
|
|
|
|
- :ref:`AlignMode<enum_BoxContainer_AlignMode>` **alignment**
|
|
|
|
+-----------+----------------------+
|
|
| *Default* | ``0`` |
|
|
+-----------+----------------------+
|
|
| *Setter* | set_alignment(value) |
|
|
+-----------+----------------------+
|
|
| *Getter* | get_alignment() |
|
|
+-----------+----------------------+
|
|
|
|
The alignment of the container's children (must be one of :ref:`ALIGN_BEGIN<class_BoxContainer_constant_ALIGN_BEGIN>`, :ref:`ALIGN_CENTER<class_BoxContainer_constant_ALIGN_CENTER>` or :ref:`ALIGN_END<class_BoxContainer_constant_ALIGN_END>`).
|
|
|
|
Descripciones de Métodos
|
|
------------------------------------------------
|
|
|
|
.. _class_BoxContainer_method_add_spacer:
|
|
|
|
- void **add_spacer** **(** :ref:`bool<class_bool>` begin **)**
|
|
|
|
Adds a control to the box as a spacer. If ``true``, ``begin`` will insert the spacer control in front of other children.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|