32 #include "scene/gui/control.h" 46 enum CloseButtonDisplayPolicy {
48 CLOSE_BUTTON_SHOW_NEVER,
49 CLOSE_BUTTON_SHOW_ACTIVE_ONLY,
50 CLOSE_BUTTON_SHOW_ALWAYS,
78 Control *_get_tab(
int idx)
const;
79 int _get_top_margin()
const;
86 CloseButtonDisplayPolicy cb_displaypolicy;
90 int get_tab_width(
int p_idx)
const;
91 void _ensure_no_over_offset();
96 void _notification(
int p_what);
97 static void _bind_methods();
103 void set_tab_title(
int p_tab,
const String& p_title);
104 String get_tab_title(
int p_tab)
const;
106 void set_tab_icon(
int p_tab,
const Ref<Texture>& p_icon);
109 void set_tab_right_button(
int p_tab,
const Ref<Texture>& p_right_button);
112 void set_tab_align(TabAlign p_align);
113 TabAlign get_tab_align()
const;
115 void set_tab_close_display_policy(CloseButtonDisplayPolicy p_policy);
117 int get_tab_count()
const;
118 void set_current_tab(
int p_current);
119 int get_current_tab()
const;
121 void remove_tab(
int p_idx);
125 void ensure_tab_visible(
int p_idx);
127 Size2 get_minimum_size()
const;
132 VARIANT_ENUM_CAST(Tabs::TabAlign);
Definition: math_2d.h:204