Merge pull request #23009 from AlexHolly/doc-tabcontainer-rearrange

Doc Tabcontainer rearrange tabs
This commit is contained in:
Rémi Verschelde 2018-10-16 14:35:28 +02:00 committed by GitHub
commit 8b42890217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,7 @@
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Returns the [code]TabContainer[/code] rearrange group id.
</description> </description>
</method> </method>
<method name="set_popup"> <method name="set_popup">
@ -132,6 +133,7 @@
<argument index="0" name="group_id" type="int"> <argument index="0" name="group_id" type="int">
</argument> </argument>
<description> <description>
Defines rearrange group id, choose for each [code]TabContainer[/code] the same value to enable tab drag between [code]TabContainer[/code]. Enable drag with [code]set_drag_to_rearrange_enabled(true)[/code].
</description> </description>
</method> </method>
</methods> </methods>
@ -140,6 +142,7 @@
The current tab index. When set, this index's [Control] node's [code]visible[/code] property is set to [code]true[/code] and all others are set to [code]false[/code]. The current tab index. When set, this index's [Control] node's [code]visible[/code] property is set to [code]true[/code] and all others are set to [code]false[/code].
</member> </member>
<member name="drag_to_rearrange_enabled" type="bool" setter="set_drag_to_rearrange_enabled" getter="get_drag_to_rearrange_enabled"> <member name="drag_to_rearrange_enabled" type="bool" setter="set_drag_to_rearrange_enabled" getter="get_drag_to_rearrange_enabled">
If [code]true[/code], tabs can be rearranged with mouse drag.
</member> </member>
<member name="tab_align" type="int" setter="set_tab_align" getter="get_tab_align" enum="TabContainer.TabAlign"> <member name="tab_align" type="int" setter="set_tab_align" getter="get_tab_align" enum="TabContainer.TabAlign">
The alignment of all tabs in the tab container. See the [code]ALIGN_*[/code] constants for details. The alignment of all tabs in the tab container. See the [code]ALIGN_*[/code] constants for details.
@ -171,10 +174,13 @@
</signals> </signals>
<constants> <constants>
<constant name="ALIGN_LEFT" value="0" enum="TabAlign"> <constant name="ALIGN_LEFT" value="0" enum="TabAlign">
Align the tabs to the left.
</constant> </constant>
<constant name="ALIGN_CENTER" value="1" enum="TabAlign"> <constant name="ALIGN_CENTER" value="1" enum="TabAlign">
Align the tabs to the center.
</constant> </constant>
<constant name="ALIGN_RIGHT" value="2" enum="TabAlign"> <constant name="ALIGN_RIGHT" value="2" enum="TabAlign">
Align the tabs to the right.
</constant> </constant>
</constants> </constants>
<theme_items> <theme_items>