2
0

class_flowcontainer.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/FlowContainer.xml.
  6. .. _class_FlowContainer:
  7. FlowContainer
  8. =============
  9. **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`HFlowContainer<class_HFlowContainer>`, :ref:`VFlowContainer<class_VFlowContainer>`
  11. Base class for flow containers.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Arranges child :ref:`Control<class_Control>` nodes vertically or horizontally in a left-to-right or top-to-bottom flow.
  16. A line is filled with :ref:`Control<class_Control>` nodes until no more fit on the same line, similar to text in an autowrapped label.
  17. .. rst-class:: classref-reftable-group
  18. Properties
  19. ----------
  20. .. table::
  21. :widths: auto
  22. +------------------------------------------------+----------------------------------------------------------+-------+
  23. | :ref:`AlignMode<enum_FlowContainer_AlignMode>` | :ref:`alignment<class_FlowContainer_property_alignment>` | ``0`` |
  24. +------------------------------------------------+----------------------------------------------------------+-------+
  25. .. rst-class:: classref-reftable-group
  26. Methods
  27. -------
  28. .. table::
  29. :widths: auto
  30. +-----------------------+--------------------------------------------------------------------------------------+
  31. | :ref:`int<class_int>` | :ref:`get_line_count<class_FlowContainer_method_get_line_count>` **(** **)** |const| |
  32. +-----------------------+--------------------------------------------------------------------------------------+
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Enumerations
  37. ------------
  38. .. _enum_FlowContainer_AlignMode:
  39. .. rst-class:: classref-enumeration
  40. enum **AlignMode**:
  41. .. _class_FlowContainer_constant_ALIGN_BEGIN:
  42. .. rst-class:: classref-enumeration-constant
  43. :ref:`AlignMode<enum_FlowContainer_AlignMode>` **ALIGN_BEGIN** = ``0``
  44. Aligns children with the beginning of the container.
  45. .. _class_FlowContainer_constant_ALIGN_CENTER:
  46. .. rst-class:: classref-enumeration-constant
  47. :ref:`AlignMode<enum_FlowContainer_AlignMode>` **ALIGN_CENTER** = ``1``
  48. Aligns children with the center of the container.
  49. .. _class_FlowContainer_constant_ALIGN_END:
  50. .. rst-class:: classref-enumeration-constant
  51. :ref:`AlignMode<enum_FlowContainer_AlignMode>` **ALIGN_END** = ``2``
  52. Aligns children with the end of the container.
  53. .. rst-class:: classref-section-separator
  54. ----
  55. .. rst-class:: classref-descriptions-group
  56. Property Descriptions
  57. ---------------------
  58. .. _class_FlowContainer_property_alignment:
  59. .. rst-class:: classref-property
  60. :ref:`AlignMode<enum_FlowContainer_AlignMode>` **alignment** = ``0``
  61. .. rst-class:: classref-property-setget
  62. - void **set_alignment** **(** :ref:`AlignMode<enum_FlowContainer_AlignMode>` value **)**
  63. - :ref:`AlignMode<enum_FlowContainer_AlignMode>` **get_alignment** **(** **)**
  64. The alignment of the container's children (must be one of :ref:`ALIGN_BEGIN<class_FlowContainer_constant_ALIGN_BEGIN>`, :ref:`ALIGN_CENTER<class_FlowContainer_constant_ALIGN_CENTER>` or :ref:`ALIGN_END<class_FlowContainer_constant_ALIGN_END>`).
  65. .. rst-class:: classref-section-separator
  66. ----
  67. .. rst-class:: classref-descriptions-group
  68. Method Descriptions
  69. -------------------
  70. .. _class_FlowContainer_method_get_line_count:
  71. .. rst-class:: classref-method
  72. :ref:`int<class_int>` **get_line_count** **(** **)** |const|
  73. Returns the current line count.
  74. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  75. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  76. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  77. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`