Merge pull request #100432 from markdibarry/add_get_line_range_rtl

Add `get_line_range()` to `RichTextLabel`
This commit is contained in:
Thaddeus Crews 2024-12-16 12:09:54 -06:00
commit 4d4c229a83
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
3 changed files with 31 additions and 0 deletions

View file

@ -112,6 +112,15 @@
[b]Note:[/b] If [member threaded] is enabled, this method returns a value for the loaded part of the document. Use [method is_finished] or [signal finished] to determine whether document is fully loaded.
</description>
</method>
<method name="get_line_range">
<return type="Vector2i" />
<param index="0" name="line" type="int" />
<description>
Returns the indexes of the first and last visible characters for the given [param line], as a [Vector2i].
[b]Note:[/b] If [member visible_characters_behavior] is set to [constant TextServer.VC_CHARS_BEFORE_SHAPING] only visible wrapped lines are counted.
[b]Note:[/b] If [member threaded] is enabled, this method returns a value for the loaded part of the document. Use [method is_finished] or [signal finished] to determine whether document is fully loaded.
</description>
</method>
<method name="get_menu" qualifiers="const">
<return type="PopupMenu" />
<description>