diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-13 13:10:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 13:10:42 +0200 |
commit | aab6dc301cc2da010ad44da5c08ba3686ef9238a (patch) | |
tree | 269b0c913e3e5145f5ed9c449df8a22992adbef2 /modules/gdnative/text/text_server_gdnative.cpp | |
parent | dd274139073da7119dfe8801c8dd29275c5fd830 (diff) | |
parent | 56a8d3f30c09fdc03b19ef48a97d344ffe2df974 (diff) |
Merge pull request #50086 from Geometror/label-improve-layout-options
Improvements to Label's layout options
Diffstat (limited to 'modules/gdnative/text/text_server_gdnative.cpp')
-rw-r--r-- | modules/gdnative/text/text_server_gdnative.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gdnative/text/text_server_gdnative.cpp b/modules/gdnative/text/text_server_gdnative.cpp index bc4b1ac134..392121c3a9 100644 --- a/modules/gdnative/text/text_server_gdnative.cpp +++ b/modules/gdnative/text/text_server_gdnative.cpp @@ -498,6 +498,11 @@ bool TextServerGDNative::shaped_text_update_justification_ops(RID p_shaped) { return interface->shaped_text_update_justification_ops(data, (godot_rid *)&p_shaped); } +void TextServerGDNative::shaped_text_overrun_trim_to_width(RID p_shaped_line, float p_width, uint8_t p_clip_flags) { + ERR_FAIL_COND(interface == nullptr); + interface->shaped_text_overrun_trim_to_width(data, (godot_rid *)&p_shaped_line, p_width, p_clip_flags); +}; + bool TextServerGDNative::shaped_text_is_ready(RID p_shaped) const { ERR_FAIL_COND_V(interface == nullptr, false); return interface->shaped_text_is_ready(data, (godot_rid *)&p_shaped); |