diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-29 13:31:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 13:31:53 +0200 |
commit | 90982d60cbaca4112fea08f47c51b0837bcb0811 (patch) | |
tree | 7a3c0d2368ff11843a79c2b651c920c0fe63bcc7 /scene/gui/button.h | |
parent | dfdde2c59868fd86788944b35591ff4e11fb03bd (diff) | |
parent | e192eb05db1e57ba2bcdd052bf3218655f5b2bc0 (diff) |
Merge pull request #37181 from jitspoe/master.button_icon_alignment
Diffstat (limited to 'scene/gui/button.h')
-rw-r--r-- | scene/gui/button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/button.h b/scene/gui/button.h index d968f63f51..253d079680 100644 --- a/scene/gui/button.h +++ b/scene/gui/button.h @@ -58,6 +58,7 @@ private: bool expand_icon = false; bool clip_text = false; TextAlign align = ALIGN_CENTER; + TextAlign icon_align = ALIGN_LEFT; float _internal_margin[4] = {}; void _shape(); @@ -102,6 +103,9 @@ public: void set_text_align(TextAlign p_align); TextAlign get_text_align() const; + void set_icon_align(TextAlign p_align); + TextAlign get_icon_align() const; + Button(const String &p_text = String()); ~Button(); }; |