summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-29 17:04:46 +0200
committerGitHub <noreply@github.com>2019-04-29 17:04:46 +0200
commit1af18ab2355fffe93c95b4c27e4f63c38c655590 (patch)
tree3472555b7bbb35c723c6bcc0e27bf7f61be69346 /doc/classes
parent8f337b6652f63c31eba00a285fffaaeabfb66a0b (diff)
parent350bcce041ebfdb6f250e93d9d08d7523a4fb88c (diff)
Merge pull request #28399 from YeldhamDev/textedit_expose_tab_fold
Expose 'TextEdit's tab drawing and folding to GDScript
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/TextEdit.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml
index 1817055bab..fa78fbe305 100644
--- a/doc/classes/TextEdit.xml
+++ b/doc/classes/TextEdit.xml
@@ -41,6 +41,7 @@
<argument index="0" name="line" type="int">
</argument>
<description>
+ Returns if the given line is foldable, that is, it has indented lines right below it.
</description>
</method>
<method name="clear_colors">
@@ -120,6 +121,7 @@
<return type="void">
</return>
<description>
+ Folds all lines that are possible to be folded (see [method can_fold]).
</description>
</method>
<method name="fold_line">
@@ -128,6 +130,7 @@
<argument index="0" name="line" type="int">
</argument>
<description>
+ Folds the given line, if possible (see [method can_fold]).
</description>
</method>
<method name="get_breakpoints" qualifiers="const">
@@ -165,6 +168,7 @@
<return type="PopupMenu">
</return>
<description>
+ Returns the [PopupMenu] of this [TextEdit]. By default, this menu is displayed when right-clicking on the [TextEdit].
</description>
</method>
<method name="get_selection_from_column" qualifiers="const">
@@ -231,6 +235,7 @@
<argument index="0" name="line" type="int">
</argument>
<description>
+ Returns if the given line is folded.
</description>
</method>
<method name="is_line_hidden" qualifiers="const">
@@ -346,6 +351,7 @@
<argument index="0" name="line" type="int">
</argument>
<description>
+ Unfolds the given line, if folded.
</description>
</method>
<method name="unhide_all_lines">
@@ -376,6 +382,12 @@
<member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled">
If [code]true[/code], a right click displays the context menu.
</member>
+ <member name="draw_tabs" type="bool" setter="set_draw_tabs" getter="is_drawing_tabs">
+ If [code]true[/code], the "tab" character will have a visible representation.
+ </member>
+ <member name="fold_gutter" type="bool" setter="set_fold_gutter_enabled" getter="is_fold_gutter_enabled">
+ If [code]true[/code], the fold gutter is visible. This enables folding groups of indented lines.
+ </member>
<member name="hiding_enabled" type="int" setter="set_hiding_enabled" getter="is_hiding_enabled">
</member>
<member name="highlight_all_occurrences" type="bool" setter="set_highlight_all_occurrences" getter="is_highlight_all_occurrences_enabled">