diff options
author | Yuri Sizov <yuris@humnom.net> | 2021-11-18 18:55:43 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2021-11-22 15:13:13 +0300 |
commit | e85e6ec7fcb4d2d542059feb63b18553d1470694 (patch) | |
tree | 025df7376d7254da4ce65edeb52b8b783953ac5f /doc/classes/TextServerExtension.xml | |
parent | 835f4dedafca255e154dd204e335097c787c363a (diff) | |
download | redot-engine-e85e6ec7fcb4d2d542059feb63b18553d1470694.tar.gz |
Add methods to get position from column and line in TextEdit
Diffstat (limited to 'doc/classes/TextServerExtension.xml')
-rw-r--r-- | doc/classes/TextServerExtension.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/TextServerExtension.xml b/doc/classes/TextServerExtension.xml index 684a1aa755..32f8107e0a 100644 --- a/doc/classes/TextServerExtension.xml +++ b/doc/classes/TextServerExtension.xml @@ -1037,6 +1037,14 @@ Copies text glyphs in the visual order, into preallocated array of the size returned by [method _shaped_text_get_glyph_count]. </description> </method> + <method name="_shaped_text_get_grapheme_bounds" qualifiers="virtual const"> + <return type="Vector2" /> + <argument index="0" name="shaped" type="RID" /> + <argument index="1" name="pos" type="int" /> + <description> + Returns composite character's bounds as offsets from the start of the line. + </description> + </method> <method name="_shaped_text_get_line_breaks" qualifiers="virtual const"> <return type="PackedInt32Array" /> <argument index="0" name="shaped" type="RID" /> |