diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2021-06-15 15:05:01 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2021-06-20 20:00:54 +0100 |
commit | 1a0cfc219b732870754046dd45264ca24f901f93 (patch) | |
tree | 322bbc6c52a20696629ecd46a88fbde420a45b7e /doc/classes | |
parent | 953de68cfc3e157ce7136081140317a2c946fa97 (diff) |
Move indent management to CodeEdit
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/CodeEdit.xml | 40 | ||||
-rw-r--r-- | doc/classes/TextEdit.xml | 58 |
2 files changed, 98 insertions, 0 deletions
diff --git a/doc/classes/CodeEdit.xml b/doc/classes/CodeEdit.xml index c7dbd86c55..30fd47cdb6 100644 --- a/doc/classes/CodeEdit.xml +++ b/doc/classes/CodeEdit.xml @@ -143,6 +143,20 @@ Inserts the selected entry into the text. If [code]replace[/code] is true, any existing text is replaced rather then merged. </description> </method> + <method name="do_indent"> + <return type="void"> + </return> + <description> + Perform an indent as if the user activated the "ui_text_indent" action. + </description> + </method> + <method name="do_unindent"> + <return type="void"> + </return> + <description> + Perform an unindent as if the user activated the "ui_text_unindent" action. + </description> + </method> <method name="fold_all_lines"> <return type="void"> </return> @@ -278,6 +292,13 @@ Returns [code]true[/code] if string [code]start_key[/code] exists. </description> </method> + <method name="indent_lines"> + <return type="void"> + </return> + <description> + Indents selected lines, or in the case of no selection the caret line by one. + </description> + </method> <method name="is_in_comment" qualifiers="const"> <return type="int"> </return> @@ -441,6 +462,13 @@ Unfolds all lines that were previously folded. </description> </method> + <method name="unindent_lines"> + <return type="void"> + </return> + <description> + Unindents selected lines, or in the case of no selection the caret line by one. + </description> + </method> <method name="update_code_completion_options"> <return type="void"> </return> @@ -475,6 +503,18 @@ </member> <member name="draw_line_numbers" type="bool" setter="set_draw_line_numbers" getter="is_draw_line_numbers_enabled" default="false"> </member> + <member name="indent_automatic" type="bool" setter="set_auto_indent_enabled" getter="is_auto_indent_enabled" default="false"> + Sets whether automatic indent are enabled, this will add an extra indent if a prefix or brace is found. + </member> + <member name="indent_automatic_prefixes" type="String[]" setter="set_auto_indent_prefixes" getter="get_auto_indent_prefixes" default="["(", ":", "[", "{"]"> + Prefixes to trigger an automatic indent. + </member> + <member name="indent_size" type="int" setter="set_indent_size" getter="get_indent_size" default="4"> + Size of tabs, if [code]indent_use_spaces[/code] is enabled the amount of spaces to use. + </member> + <member name="indent_use_spaces" type="bool" setter="set_indent_using_spaces" getter="is_indent_using_spaces" default="false"> + Use spaces instead of tabs for indentation. + </member> <member name="layout_direction" type="int" setter="set_layout_direction" getter="get_layout_direction" override="true" enum="Control.LayoutDirection" default="2" /> <member name="line_folding" type="bool" setter="set_line_folding_enabled" getter="is_line_folding_enabled" default="true"> Sets whether line folding is allowed. diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 03e4556c92..6a3c124c60 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -10,6 +10,12 @@ <tutorials> </tutorials> <methods> + <method name="_backspace" qualifiers="virtual"> + <return type="void"> + </return> + <description> + </description> + </method> <method name="add_gutter"> <return type="void"> </return> @@ -18,6 +24,12 @@ <description> </description> </method> + <method name="backspace"> + <return type="void"> + </return> + <description> + </description> + </method> <method name="center_viewport_to_cursor"> <return type="void"> </return> @@ -96,6 +108,12 @@ Cut's the current selection. </description> </method> + <method name="delete_selection"> + <return type="void"> + </return> + <description> + </description> + </method> <method name="deselect"> <return type="void"> </return> @@ -110,6 +128,14 @@ Gets the caret pixel draw poistion. </description> </method> + <method name="get_first_non_whitespace_column" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="line" type="int"> + </argument> + <description> + </description> + </method> <method name="get_gutter_count" qualifiers="const"> <return type="int"> </return> @@ -140,6 +166,14 @@ <description> </description> </method> + <method name="get_indent_level" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="line" type="int"> + </argument> + <description> + </description> + </method> <method name="get_line" qualifiers="const"> <return type="String"> </return> @@ -274,6 +308,12 @@ Returns the selection end line. </description> </method> + <method name="get_tab_size" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="get_visible_line_count" qualifiers="const"> <return type="int"> </return> @@ -354,6 +394,16 @@ Triggers a right-click menu action by the specified index. See [enum MenuItems] for a list of available indexes. </description> </method> + <method name="merge_gutters"> + <return type="void"> + </return> + <argument index="0" name="from_line" type="int"> + </argument> + <argument index="1" name="to_line" type="int"> + </argument> + <description> + </description> + </method> <method name="paste"> <return type="void"> </return> @@ -611,6 +661,14 @@ <description> </description> </method> + <method name="set_tab_size"> + <return type="void"> + </return> + <argument index="0" name="size" type="int"> + </argument> + <description> + </description> + </method> <method name="undo"> <return type="void"> </return> |