mirror of https://github.com/godotengine/godot
Expose TabBar::clear_tabs to GDScript
This commit is contained in:
parent
fcba87e696
commit
436cd91065
|
|
@ -17,6 +17,12 @@
|
||||||
Adds a new tab.
|
Adds a new tab.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="clear_tabs">
|
||||||
|
<return type="void" />
|
||||||
|
<description>
|
||||||
|
Clears all tabs.
|
||||||
|
</description>
|
||||||
|
</method>
|
||||||
<method name="ensure_tab_visible">
|
<method name="ensure_tab_visible">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<param index="0" name="idx" type="int" />
|
<param index="0" name="idx" type="int" />
|
||||||
|
|
|
||||||
|
|
@ -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("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("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("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_selected", PropertyInfo(Variant::INT, "tab")));
|
||||||
ADD_SIGNAL(MethodInfo("tab_changed", PropertyInfo(Variant::INT, "tab")));
|
ADD_SIGNAL(MethodInfo("tab_changed", PropertyInfo(Variant::INT, "tab")));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue