summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2021-10-31 18:34:54 +0000
committerPaulb23 <p_batty@hotmail.co.uk>2021-11-17 18:29:19 +0000
commit2a302f709738dbb0c43bc6f15a40ba8f6b9aa4e8 (patch)
tree451e9149f6dfd0631ba5f3f3c1675e31d5ea1428 /doc/classes
parente445bacd90688e85d9720353b70814cdbf66e7db (diff)
Fix TextEdit mouse interactions when the last line is hidden
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/TextEdit.xml11
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" />