diff options
author | Hendrik Brucker <hendrik.brucker@mail.de> | 2021-07-04 16:43:55 +0200 |
---|---|---|
committer | Hendrik Brucker <hendrik.brucker@mail.de> | 2021-07-04 16:43:55 +0200 |
commit | 56a8d3f30c09fdc03b19ef48a97d344ffe2df974 (patch) | |
tree | f3be955afcbb70de9d3afcd8a462ff7cecc980ce /modules/gdnative/include | |
parent | cb4e42155dd3a0e513106d7a219366dd355e9483 (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/include')
-rw-r--r-- | modules/gdnative/include/text/godot_text.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/include/text/godot_text.h b/modules/gdnative/include/text/godot_text.h index f3c50e6f87..5c59de7c06 100644 --- a/modules/gdnative/include/text/godot_text.h +++ b/modules/gdnative/include/text/godot_text.h @@ -143,6 +143,7 @@ typedef struct { bool (*shaped_text_shape)(void *, godot_rid *); bool (*shaped_text_update_breaks)(void *, godot_rid *); bool (*shaped_text_update_justification_ops)(void *, godot_rid *); + void (*shaped_text_overrun_trim_to_width)(void *, godot_rid *, float, uint8_t); bool (*shaped_text_is_ready)(void *, godot_rid *); godot_packed_glyph_array (*shaped_text_get_glyphs)(void *, godot_rid *); godot_vector2i (*shaped_text_get_range)(void *, godot_rid *); |