summaryrefslogtreecommitdiffstats
path: root/doc/classes/TabBar.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/TabBar.xml')
-rw-r--r--doc/classes/TabBar.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/classes/TabBar.xml b/doc/classes/TabBar.xml
index 8b3bac456a..bfcb1a0e69 100644
--- a/doc/classes/TabBar.xml
+++ b/doc/classes/TabBar.xml
@@ -140,6 +140,18 @@
Removes the tab at index [param tab_idx].
</description>
</method>
+ <method name="select_next_available">
+ <return type="bool" />
+ <description>
+ Selects the first available tab with greater index than the currently selected. Returns [code]true[/code] if tab selection changed.
+ </description>
+ </method>
+ <method name="select_previous_available">
+ <return type="bool" />
+ <description>
+ Selects the first available tab with lower index than the currently selected. Returns [code]true[/code] if tab selection changed.
+ </description>
+ </method>
<method name="set_tab_button_icon">
<return type="void" />
<param index="0" name="tab_idx" type="int" />
@@ -223,6 +235,7 @@
<member name="drag_to_rearrange_enabled" type="bool" setter="set_drag_to_rearrange_enabled" getter="get_drag_to_rearrange_enabled" default="false">
If [code]true[/code], tabs can be rearranged with mouse drag.
</member>
+ <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" overrides="Control" enum="Control.FocusMode" default="2" />
<member name="max_tab_width" type="int" setter="set_max_tab_width" getter="get_max_tab_width" default="0">
Sets the maximum width which all tabs should be limited to. Unlimited if set to [code]0[/code].
</member>
@@ -396,6 +409,9 @@
<theme_item name="tab_disabled" data_type="style" type="StyleBox">
The style of disabled tabs.
</theme_item>
+ <theme_item name="tab_focus" data_type="style" type="StyleBox">
+ [StyleBox] used when the [TabBar] is focused. The [theme_item tab_focus] [StyleBox] is displayed [i]over[/i] the base [StyleBox] of the selected tab, so a partially transparent [StyleBox] should be used to ensure the base [StyleBox] remains visible. A [StyleBox] that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a [StyleBoxEmpty] resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
+ </theme_item>
<theme_item name="tab_hovered" data_type="style" type="StyleBox">
The style of the currently hovered tab. Does not apply to the selected tab.
</theme_item>