From 0a32a6907b4c6801e0b9d22057863c01fd25a3cd Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Fri, 9 Jul 2021 17:27:09 +0100 Subject: Cleanup and expose viewport / scrolling methods --- doc/classes/TextEdit.xml | 102 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 96 insertions(+), 6 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 00c4c170db..c89748f323 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -50,6 +50,13 @@ + + + + + Adjust the viewport so the caret is visible. + + @@ -135,6 +142,13 @@ + + + + + Returns the first visible line. + + @@ -165,6 +179,20 @@ Returns the indent level of a specific line. + + + + + Return the last visible line. Use [method get_last_full_visible_line_wrap_index] for the wrap index. + + + + + + + Returns the last visible wrap index of the last visible line. + + @@ -248,6 +276,13 @@ Returns the [PopupMenu] of this [TextEdit]. By default, this menu is displayed when right-clicking on the [TextEdit]. + + + + + Gets the total amount of lines that can be draw on the minimap. + + @@ -255,6 +290,24 @@ Returns OpenType feature [code]tag[/code]. + + + + + + + + + Gets the scroll position for [code]wrap_index[/code] of [code]line[/code]. + + + + + + + Returns the text inside the selection. + + @@ -282,12 +335,6 @@ - - - - Returns the text inside the selection. - - @@ -311,6 +358,13 @@ + + + + + Gets the total amount of lines that could be draw. + + @@ -571,6 +625,39 @@ Sets the text for a specific line. + + + + + + + + + Positions the [code]wrap_index[/code] of [code]line[/code] at the center of the viewport. + + + + + + + + + + + Positions the [code]wrap_index[/code] of [code]line[/code] at the top of the viewport. + + + + + + + + + + + Positions the [code]wrap_index[/code] of [code]line[/code] at the bottom of the viewport. + + @@ -714,6 +801,9 @@ If there is a horizontal scrollbar, this determines the current horizontal scroll value in pixels. + + Allow scrolling past the last line into "virtual" space. + If there is a vertical scrollbar, this determines the current vertical scroll value in line numbers, starting at 0 for the top line. -- cgit v1.2.3