From 5c618dd03dd4fe1ada234e91a08bcf12eb8f7aa7 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 13 Mar 2021 14:09:49 +0000 Subject: Move code folding into CodeEdit and hide line hiding API --- doc/classes/CodeEdit.xml | 70 +++++++++++++++++++++++++++++++++++++++ doc/classes/TextEdit.xml | 86 +----------------------------------------------- 2 files changed, 71 insertions(+), 85 deletions(-) (limited to 'doc') diff --git a/doc/classes/CodeEdit.xml b/doc/classes/CodeEdit.xml index 4076198df6..fcd36447c5 100644 --- a/doc/classes/CodeEdit.xml +++ b/doc/classes/CodeEdit.xml @@ -86,6 +86,15 @@ Line only denotes if the region should continue until the end of the line or carry over on to the next line. If the end key is blank this is automatically set to [code]true[/code]. + + + + + + + Returns if the given line is foldable, that is, it has indented lines right below it or a comment / string block. + + @@ -134,6 +143,22 @@ Inserts the selected entry into the text. If [code]replace[/code] is true, any existing text is replaced rather then merged. + + + + + Folds all lines that are possible to be folded (see [method can_fold_line]). + + + + + + + + + Folds the given line, if possible (see [method can_fold_line]). + + @@ -221,6 +246,13 @@ + + + + + Return all lines that are current folded. + + @@ -292,6 +324,15 @@ + + + + + + + Returns whether the line at the specified index is folded or not. + + @@ -376,6 +417,30 @@ + + + + + + + Toggle the folding of the code block at the given line. + + + + + + + + + + + + + + + Unfolds all lines that were previously folded. + + @@ -411,6 +476,9 @@ + + Sets whether line folding is allowed. + @@ -500,6 +568,8 @@ + + diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 74811318dc..2d6a052fe3 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -18,15 +18,6 @@ - - - - - - - Returns if the given line is foldable, that is, it has indented lines right below it. - - @@ -95,7 +86,7 @@ Moves the cursor at the specified [code]line[/code] index. If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport will center at the cursor position after the move occurs. - If [code]can_be_hidden[/code] is set to [code]true[/code], the specified [code]line[/code] can be hidden using [method set_line_as_hidden]. + If [code]can_be_hidden[/code] is set to [code]true[/code], the specified [code]line[/code] can be hidden. @@ -112,22 +103,6 @@ Deselects the current selection. - - - - - Folds all lines that are possible to be folded (see [method can_fold]). - - - - - - - - - Folds the given line, if possible (see [method can_fold]). - - @@ -329,15 +304,6 @@ Returns [code]true[/code] if the caret is visible on the screen. - - - - - - - Returns whether the line at the specified index is folded or not. - - @@ -372,15 +338,6 @@ - - - - - - - Returns whether the line at the specified index is hidden or not. - - @@ -560,17 +517,6 @@ Sets the text for a specific line. - - - - - - - - - If [code]true[/code], hides the line of the specified index. - - @@ -665,15 +611,6 @@ - - - - - - - Toggle the folding of the code block at the given line. - - @@ -681,22 +618,6 @@ Perform undo operation. - - - - - - - Unfolds the given line, if folded. - - - - - - - Unhide all lines that were previously set to hidden by [method set_line_as_hidden]. - - @@ -730,9 +651,6 @@ If [code]true[/code], the "tab" character will have a visible representation. - - If [code]true[/code], all lines that have been set to hidden by [method set_line_as_hidden], will not be visible. - If [code]true[/code], all occurrences of the selected text will be highlighted. @@ -972,8 +890,6 @@ - - Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be enabled. -- cgit v1.2.3