Expose TabBar::clear_tabs to GDScript

This commit is contained in:
Stanislav Labzyuk 2023-01-08 13:52:57 +01:00
parent fcba87e696
commit 436cd91065
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,12 @@
Adds a new tab.
</description>
</method>
<method name="clear_tabs">
<return type="void" />
<description>
Clears all tabs.
</description>
</method>
<method name="ensure_tab_visible">
<return type="void" />
<param index="0" name="idx" type="int" />

View File

@ -1577,6 +1577,7 @@ void TabBar::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_scroll_to_selected"), &TabBar::get_scroll_to_selected);
ClassDB::bind_method(D_METHOD("set_select_with_rmb", "enabled"), &TabBar::set_select_with_rmb);
ClassDB::bind_method(D_METHOD("get_select_with_rmb"), &TabBar::get_select_with_rmb);
ClassDB::bind_method(D_METHOD("clear_tabs"), &TabBar::clear_tabs);
ADD_SIGNAL(MethodInfo("tab_selected", PropertyInfo(Variant::INT, "tab")));
ADD_SIGNAL(MethodInfo("tab_changed", PropertyInfo(Variant::INT, "tab")));