summaryrefslogtreecommitdiffstats
path: root/modules/text_server_adv/text_server_adv.h
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2021-07-04 16:43:55 +0200
committerHendrik Brucker <hendrik.brucker@mail.de>2021-07-04 16:43:55 +0200
commit56a8d3f30c09fdc03b19ef48a97d344ffe2df974 (patch)
treef3be955afcbb70de9d3afcd8a462ff7cecc980ce /modules/text_server_adv/text_server_adv.h
parentcb4e42155dd3a0e513106d7a219366dd355e9483 (diff)
downloadredot-engine-56a8d3f30c09fdc03b19ef48a97d344ffe2df974.tar.gz
Improvements to Label's layout options
- Added options to trim the text in case it overruns - Added more autowrap modes - Improved line breaking, which ignores trailing spaces
Diffstat (limited to 'modules/text_server_adv/text_server_adv.h')
-rw-r--r--modules/text_server_adv/text_server_adv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/text_server_adv/text_server_adv.h b/modules/text_server_adv/text_server_adv.h
index 4ad23ca059..3c4f840bfd 100644
--- a/modules/text_server_adv/text_server_adv.h
+++ b/modules/text_server_adv/text_server_adv.h
@@ -229,6 +229,8 @@ public:
virtual bool shaped_text_update_breaks(RID p_shaped) override;
virtual bool shaped_text_update_justification_ops(RID p_shaped) override;
+ virtual void shaped_text_overrun_trim_to_width(RID p_shaped, float p_width, uint8_t p_clip_flags) override;
+
virtual bool shaped_text_is_ready(RID p_shaped) const override;
virtual Vector<Glyph> shaped_text_get_glyphs(RID p_shaped) const override;