summaryrefslogtreecommitdiffstats
path: root/doc/classes
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-04-26 08:27:27 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-04-26 08:27:27 +0800
commit779426b2fa8acf415a01998d91ad77ebb6e64be4 (patch)
treec1f1a3cd7cf7078863a553813210478879babb66 /doc/classes
parent11d3768132582d192b8464769f26b493ae822321 (diff)
downloadredot-engine-779426b2fa8acf415a01998d91ad77ebb6e64be4.tar.gz
Allow setting icon max width for TabContainer
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/TabContainer.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/TabContainer.xml b/doc/classes/TabContainer.xml
index f4d69c3076..090afa0220 100644
--- a/doc/classes/TabContainer.xml
+++ b/doc/classes/TabContainer.xml
@@ -64,6 +64,13 @@
Returns the [Texture2D] for the tab at index [param tab_idx] or [code]null[/code] if the tab has no [Texture2D].
</description>
</method>
+ <method name="get_tab_icon_max_width" qualifiers="const">
+ <return type="int" />
+ <param index="0" name="tab_idx" type="int" />
+ <description>
+ Returns the maximum allowed width of the icon for the tab at index [param tab_idx].
+ </description>
+ </method>
<method name="get_tab_idx_at_point" qualifiers="const">
<return type="int" />
<param index="0" name="point" type="Vector2" />
@@ -164,6 +171,14 @@
Sets an icon for the tab at index [param tab_idx].
</description>
</method>
+ <method name="set_tab_icon_max_width">
+ <return type="void" />
+ <param index="0" name="tab_idx" type="int" />
+ <param index="1" name="width" type="int" />
+ <description>
+ Sets the maximum allowed width of the icon for the tab at index [param tab_idx]. This limit is applied on top of the default size of the icon and on top of [theme_item icon_max_width]. The height is adjusted according to the icon's ratio.
+ </description>
+ </method>
<method name="set_tab_metadata">
<return type="void" />
<param index="0" name="tab_idx" type="int" />