summaryrefslogtreecommitdiffstats
path: root/scene/gui/tab_container.h
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2022-03-17 10:24:47 +1100
committerBastiaan Olij <mux213@gmail.com>2022-04-04 18:43:29 +1000
commit9b7b9de0e5e8bfe49ad9e02474eb9ddd5d7dacd5 (patch)
tree1b97984c4874521c4551c5d76ba03ef05b46abb3 /scene/gui/tab_container.h
parent7bb963efe9083662baa356f56a2d5c368b96a9a0 (diff)
downloadredot-engine-9b7b9de0e5e8bfe49ad9e02474eb9ddd5d7dacd5.tar.gz
Add action map editor for OpenXR
Diffstat (limited to 'scene/gui/tab_container.h')
-rw-r--r--scene/gui/tab_container.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/tab_container.h b/scene/gui/tab_container.h
index c54934b37b..225c24c25e 100644
--- a/scene/gui/tab_container.h
+++ b/scene/gui/tab_container.h
@@ -56,6 +56,7 @@ class TabContainer : public Container {
void _on_mouse_exited();
void _on_tab_changed(int p_tab);
void _on_tab_selected(int p_tab);
+ void _on_tab_button_pressed(int p_tab);
Variant _get_drag_data_fw(const Point2 &p_point, Control *p_from_control);
bool _can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from_control) const;
@@ -97,6 +98,9 @@ public:
void set_tab_hidden(int p_tab, bool p_hidden);
bool is_tab_hidden(int p_tab) const;
+ void set_tab_button_icon(int p_tab, const Ref<Texture2D> &p_icon);
+ Ref<Texture2D> get_tab_button_icon(int p_tab) const;
+
int get_tab_count() const;
void set_current_tab(int p_current);
int get_current_tab() const;