summaryrefslogtreecommitdiff
path: root/modules/gdnative/text/text_server_gdnative.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/gdnative/text/text_server_gdnative.h
parentcb4e42155dd3a0e513106d7a219366dd355e9483 (diff)
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/gdnative/text/text_server_gdnative.h')
-rw-r--r--modules/gdnative/text/text_server_gdnative.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/text/text_server_gdnative.h b/modules/gdnative/text/text_server_gdnative.h
index 7e42b16fe1..d613a7ec00 100644
--- a/modules/gdnative/text/text_server_gdnative.h
+++ b/modules/gdnative/text/text_server_gdnative.h
@@ -167,6 +167,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;