0.2.0-dev Download ZIP
67 lines ·4.1 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="FlowContainer" inherits="Container" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A container that arranges its child controls horizontally or vertically and wraps them around at the borders. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | A container that arranges its child controls horizontally or vertically and wraps them around at the borders. This is similar to how text in a book wraps around when no more words can fit on a line. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Using Containers">$DOCS_URL/tutorials/ui/gui_containers.html</link> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="get_line_count" qualifiers="const"> |
| 14 | <return type="int" /> |
| 15 | <description> |
| 16 | Returns the current line count. |
| 17 | </description> |
| 18 | </method> |
| 19 | </methods> |
| 20 | <members> |
| 21 | <member name="alignment" type="int" setter="set_alignment" getter="get_alignment" enum="FlowContainer.AlignmentMode" default="0"> |
| 22 | The alignment of the container's children (must be one of [constant ALIGNMENT_BEGIN], [constant ALIGNMENT_CENTER], or [constant ALIGNMENT_END]). |
| 23 | </member> |
| 24 | <member name="last_wrap_alignment" type="int" setter="set_last_wrap_alignment" getter="get_last_wrap_alignment" enum="FlowContainer.LastWrapAlignmentMode" default="0"> |
| 25 | The wrap behavior of the last, partially filled row or column (must be one of [constant LAST_WRAP_ALIGNMENT_INHERIT], [constant LAST_WRAP_ALIGNMENT_BEGIN], [constant LAST_WRAP_ALIGNMENT_CENTER], or [constant LAST_WRAP_ALIGNMENT_END]). |
| 26 | </member> |
| 27 | <member name="reverse_fill" type="bool" setter="set_reverse_fill" getter="is_reverse_fill" default="false"> |
| 28 | If [code]true[/code], reverses fill direction. Horizontal [FlowContainer]s will fill rows bottom to top, vertical [FlowContainer]s will fill columns right to left. |
| 29 | When using a vertical [FlowContainer] with a right to left [member Control.layout_direction], columns will fill left to right instead. |
| 30 | </member> |
| 31 | <member name="vertical" type="bool" setter="set_vertical" getter="is_vertical" default="false"> |
| 32 | If [code]true[/code], the [FlowContainer] will arrange its children vertically, rather than horizontally. |
| 33 | Can't be changed when using [HFlowContainer] and [VFlowContainer]. |
| 34 | </member> |
| 35 | </members> |
| 36 | <constants> |
| 37 | <constant name="ALIGNMENT_BEGIN" value="0" enum="AlignmentMode"> |
| 38 | The child controls will be arranged at the beginning of the container, i.e. top if orientation is vertical, left if orientation is horizontal (right for RTL layout). |
| 39 | </constant> |
| 40 | <constant name="ALIGNMENT_CENTER" value="1" enum="AlignmentMode"> |
| 41 | The child controls will be centered in the container. |
| 42 | </constant> |
| 43 | <constant name="ALIGNMENT_END" value="2" enum="AlignmentMode"> |
| 44 | The child controls will be arranged at the end of the container, i.e. bottom if orientation is vertical, right if orientation is horizontal (left for RTL layout). |
| 45 | </constant> |
| 46 | <constant name="LAST_WRAP_ALIGNMENT_INHERIT" value="0" enum="LastWrapAlignmentMode"> |
| 47 | The last partially filled row or column will wrap aligned to the previous row or column in accordance with [member alignment]. |
| 48 | </constant> |
| 49 | <constant name="LAST_WRAP_ALIGNMENT_BEGIN" value="1" enum="LastWrapAlignmentMode"> |
| 50 | The last partially filled row or column will wrap aligned to the beginning of the previous row or column. |
| 51 | </constant> |
| 52 | <constant name="LAST_WRAP_ALIGNMENT_CENTER" value="2" enum="LastWrapAlignmentMode"> |
| 53 | The last partially filled row or column will wrap aligned to the center of the previous row or column. |
| 54 | </constant> |
| 55 | <constant name="LAST_WRAP_ALIGNMENT_END" value="3" enum="LastWrapAlignmentMode"> |
| 56 | The last partially filled row or column will wrap aligned to the end of the previous row or column. |
| 57 | </constant> |
| 58 | </constants> |
| 59 | <theme_items> |
| 60 | <theme_item name="h_separation" data_type="constant" type="int" default="4"> |
| 61 | The horizontal separation of child nodes. |
| 62 | </theme_item> |
| 63 | <theme_item name="v_separation" data_type="constant" type="int" default="4"> |
| 64 | The vertical separation of child nodes. |
| 65 | </theme_item> |
| 66 | </theme_items> |
| 67 | </class> |