mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add tab spacing modifier for tabs in TabBar and TabContainer
This commit is contained in:
parent
394508d26d
commit
117d5cbf96
6 changed files with 91 additions and 11 deletions
|
|
@ -127,6 +127,7 @@ private:
|
|||
|
||||
struct ThemeCache {
|
||||
int h_separation = 0;
|
||||
int tab_separation = 0;
|
||||
int icon_max_width = 0;
|
||||
|
||||
Ref<StyleBox> tab_unselected_style;
|
||||
|
|
@ -225,6 +226,7 @@ public:
|
|||
Ref<Texture2D> get_tab_button_icon(int p_tab) const;
|
||||
|
||||
int get_tab_idx_at_point(const Point2 &p_point) const;
|
||||
int get_closest_tab_idx_to_point(const Point2 &p_point) const;
|
||||
|
||||
void set_tab_alignment(AlignmentMode p_alignment);
|
||||
AlignmentMode get_tab_alignment() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue