Add methods to get position from column and line in TextEdit

This commit is contained in:
Yuri Sizov
2021-11-18 18:55:43 +03:00
parent 835f4dedaf
commit e85e6ec7fc
9 changed files with 160 additions and 9 deletions

View File

@@ -1028,6 +1028,14 @@
Returns text glyphs in the visual order.
</description>
</method>
<method name="shaped_text_get_grapheme_bounds" qualifiers="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="const">
<return type="PackedInt32Array" />
<argument index="0" name="shaped" type="RID" />