diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-18 15:56:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 15:56:06 +0100 |
commit | 395558c02110f7779ba2881baf083f0ac3b47b47 (patch) | |
tree | c560fdcd22ab0a420fb57569e012d462ff39f22c /doc | |
parent | 8ea92b9c1fb42af5d371e59c785bbb03d872a4ce (diff) | |
parent | 2a302f709738dbb0c43bc6f15a40ba8f6b9aa4e8 (diff) |
Merge pull request #54462 from Paulb23/the-last-hidden-line
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/TextEdit.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index b8e2f7f03c..400fae4aad 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -233,8 +233,9 @@ <method name="get_line_column_at_pos" qualifiers="const"> <return type="Vector2i" /> <argument index="0" name="position" type="Vector2i" /> + <argument index="1" name="allow_out_of_bounds" type="bool" default="true" /> <description> - Returns the line and column at the given position. In the returned vector, [code]x[/code] is the column, [code]y[/code] is the line. + Returns the line and column at the given position. In the returned vector, [code]x[/code] is the column, [code]y[/code] is the line. If [code]allow_out_of_bounds[/code] is [code]false[/code] and the position is not over the text, both vector values will be set to [code]-1[/code]. </description> </method> <method name="get_line_count" qualifiers="const"> @@ -453,6 +454,14 @@ Returns the number of visible lines, including wrapped text. </description> </method> + <method name="get_visible_line_count_in_range" qualifiers="const"> + <return type="int" /> + <argument index="0" name="from_line" type="int" /> + <argument index="1" name="to_line" type="int" /> + <description> + Returns the total number of visible + wrapped lines between the two lines. + </description> + </method> <method name="get_word_at_pos" qualifiers="const"> <return type="String" /> <argument index="0" name="position" type="Vector2" /> |