diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-15 23:55:34 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-15 23:55:34 +0100 |
commit | bd350f2e5575287c89f13aaeee9e0a3fd7e87bd2 (patch) | |
tree | 34dbaa70cd614f0bb674603dd136df1fe4b0d85b /scene/gui/rich_text_label.h | |
parent | 15631e24f740872c2be7cf81dd252c38b4aa174e (diff) | |
parent | 53c76fa5d16cd71f98081c307256e35e27212c11 (diff) |
Merge pull request #69776 from bruvzg/rtl_align_and_padding
[RTL/TextServer] Add baseline inline alignment mode for objects and RTL tables.
Diffstat (limited to 'scene/gui/rich_text_label.h')
-rw-r--r-- | scene/gui/rich_text_label.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.h b/scene/gui/rich_text_label.h index b00cc3d055..7aa6e6fa2a 100644 --- a/scene/gui/rich_text_label.h +++ b/scene/gui/rich_text_label.h @@ -268,7 +268,9 @@ private: LocalVector<Column> columns; LocalVector<float> rows; + LocalVector<float> rows_baseline; + int align_to_row = -1; int total_width = 0; int total_height = 0; InlineAlignment inline_align = INLINE_ALIGNMENT_TOP; @@ -592,7 +594,7 @@ public: void push_list(int p_level, ListType p_list, bool p_capitalize); void push_meta(const Variant &p_meta); void push_hint(const String &p_string); - void push_table(int p_columns, InlineAlignment p_alignment = INLINE_ALIGNMENT_TOP); + void push_table(int p_columns, InlineAlignment p_alignment = INLINE_ALIGNMENT_TOP, int p_align_to_row = -1); void push_fade(int p_start_index, int p_length); void push_shake(int p_strength, float p_rate, bool p_connected); void push_wave(float p_frequency, float p_amplitude, bool p_connected); |