diff options
Diffstat (limited to 'doc/classes/TextEdit.xml')
-rw-r--r-- | doc/classes/TextEdit.xml | 236 |
1 files changed, 51 insertions, 185 deletions
diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 0e862a7903..d5afe28eb8 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" ?> -<class name="TextEdit" inherits="Control" category="Core" version="3.0-alpha"> +<class name="TextEdit" inherits="Control" category="Core" version="3.0-beta"> <brief_description> Multiline text editing control. </brief_description> @@ -37,6 +37,14 @@ Add a keyword and its color. </description> </method> + <method name="can_fold" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="line" type="int"> + </argument> + <description> + </description> + </method> <method name="clear_colors"> <return type="void"> </return> @@ -58,20 +66,6 @@ Copy the current selection. </description> </method> - <method name="cursor_get_blink_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - Gets whether the text editor caret is blinking. - </description> - </method> - <method name="cursor_get_blink_speed" qualifiers="const"> - <return type="float"> - </return> - <description> - Gets the text editor caret blink speed. - </description> - </method> <method name="cursor_get_column" qualifiers="const"> <return type="int"> </return> @@ -86,67 +80,49 @@ Return the line the editing cursor is at. </description> </method> - <method name="cursor_is_block_mode" qualifiers="const"> - <return type="bool"> - </return> - <description> - Gets whether the text editor caret is in block mode. - </description> - </method> - <method name="cursor_set_blink_enabled"> + <method name="cursor_set_column"> <return type="void"> </return> - <argument index="0" name="enable" type="bool"> + <argument index="0" name="column" type="int"> + </argument> + <argument index="1" name="adjust_viewport" type="bool" default="true"> </argument> <description> - Set the text editor caret to blink. </description> </method> - <method name="cursor_set_blink_speed"> + <method name="cursor_set_line"> <return type="void"> </return> - <argument index="0" name="blink_speed" type="float"> + <argument index="0" name="line" type="int"> + </argument> + <argument index="1" name="adjust_viewport" type="bool" default="true"> + </argument> + <argument index="2" name="can_be_hidden" type="bool" default="true"> </argument> <description> - Set the text editor caret blink speed. Cannot be less then or equal to 0. </description> </method> - <method name="cursor_set_block_mode"> + <method name="cut"> <return type="void"> </return> - <argument index="0" name="enable" type="bool"> - </argument> <description> - Set the text editor caret to block mode. + Cut the current selection. </description> </method> - <method name="cursor_set_column"> + <method name="fold_all_lines"> <return type="void"> </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="adjust_viewport" type="bool" default="true"> - </argument> <description> </description> </method> - <method name="cursor_set_line"> + <method name="fold_line"> <return type="void"> </return> <argument index="0" name="line" type="int"> </argument> - <argument index="1" name="adjust_viewport" type="bool" default="true"> - </argument> <description> </description> </method> - <method name="cut"> - <return type="void"> - </return> - <description> - Cut the current selection. - </description> - </method> <method name="get_line" qualifiers="const"> <return type="String"> </return> @@ -204,19 +180,6 @@ Return the selection end line. </description> </method> - <method name="get_text"> - <return type="String"> - </return> - <description> - Return the whole text. - </description> - </method> - <method name="get_v_scroll_speed" qualifiers="const"> - <return type="float"> - </return> - <description> - </description> - </method> <method name="get_word_under_cursor" qualifiers="const"> <return type="String"> </return> @@ -232,37 +195,20 @@ Insert a given text at the cursor position. </description> </method> - <method name="is_context_menu_enabled"> - <return type="bool"> - </return> - <description> - Returns true if the context menu is enabled. - </description> - </method> - <method name="is_highlight_all_occurrences_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - Returns true if highlight all occurrences is enabled. - </description> - </method> - <method name="is_highlight_current_line_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_overriding_selected_font_color" qualifiers="const"> + <method name="is_folded" qualifiers="const"> <return type="bool"> </return> + <argument index="0" name="line" type="int"> + </argument> <description> </description> </method> - <method name="is_readonly" qualifiers="const"> + <method name="is_line_hidden" qualifiers="const"> <return type="bool"> </return> + <argument index="0" name="arg0" type="int"> + </argument> <description> - Return true if the text editor is in read-only mode (see [method set_readonly]). </description> </method> <method name="is_selection_active" qualifiers="const"> @@ -272,26 +218,6 @@ Return true if the selection is active. </description> </method> - <method name="is_show_line_numbers_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - Returns true if line numbers are enabled. - </description> - </method> - <method name="is_smooth_scroll_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_syntax_coloring_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - Return true if the syntax coloring is enabled. - </description> - </method> <method name="menu_option"> <return type="void"> </return> @@ -351,28 +277,12 @@ Select all the text. </description> </method> - <method name="set_context_menu_enabled"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Set the status of the context menu. When enabled, the context menu will appear when the [code]TextEdit[/code] is right clicked. - </description> - </method> - <method name="set_highlight_all_occurrences"> + <method name="set_line_as_hidden"> <return type="void"> </return> - <argument index="0" name="enable" type="bool"> + <argument index="0" name="line" type="int"> </argument> - <description> - Set to enable highlighting all occurrences of the current selection. - </description> - </method> - <method name="set_highlight_current_line"> - <return type="void"> - </return> - <argument index="0" name="enabled" type="bool"> + <argument index="1" name="enable" type="bool"> </argument> <description> </description> @@ -386,80 +296,34 @@ Set the maximum amount of characters editable. </description> </method> - <method name="set_override_selected_font_color"> - <return type="void"> - </return> - <argument index="0" name="override" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_readonly"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Set the text editor as read-only. Text can be displayed but not edited. - </description> - </method> - <method name="set_show_line_numbers"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Set to enable showing line numbers. - </description> - </method> - <method name="set_smooth_scroll_enable"> - <return type="void"> - </return> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_syntax_coloring"> + <method name="set_wrap"> <return type="void"> </return> <argument index="0" name="enable" type="bool"> </argument> <description> - Set to enable the syntax coloring. + Enable text wrapping when it goes beyond he edge of what is visible. </description> </method> - <method name="set_text"> + <method name="undo"> <return type="void"> </return> - <argument index="0" name="text" type="String"> - </argument> - <description> - Set the entire text. - </description> - </method> - <method name="set_v_scroll_speed"> - <return type="void"> - </return> - <argument index="0" name="speed" type="float"> - </argument> <description> + Perform undo operation. </description> </method> - <method name="set_wrap"> + <method name="unfold_line"> <return type="void"> </return> - <argument index="0" name="enable" type="bool"> + <argument index="0" name="line" type="int"> </argument> <description> - Enable text wrapping when it goes beyond he edge of what is visible. </description> </method> - <method name="undo"> + <method name="unhide_all_lines"> <return type="void"> </return> <description> - Perform undo operation. </description> </method> </methods> @@ -472,6 +336,8 @@ </member> <member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled"> </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"> </member> <member name="highlight_current_line" type="bool" setter="set_highlight_current_line" getter="is_highlight_current_line_enabled"> @@ -527,28 +393,28 @@ </signal> </signals> <constants> - <constant name="SEARCH_MATCH_CASE" value="1"> + <constant name="SEARCH_MATCH_CASE" value="1" enum="SearchFlags"> Match case when searching. </constant> - <constant name="SEARCH_WHOLE_WORDS" value="2"> + <constant name="SEARCH_WHOLE_WORDS" value="2" enum="SearchFlags"> Match whole words when searching. </constant> - <constant name="SEARCH_BACKWARDS" value="4"> + <constant name="SEARCH_BACKWARDS" value="4" enum="SearchFlags"> Search from end to beginning. </constant> - <constant name="MENU_CUT" value="0"> + <constant name="MENU_CUT" value="0" enum="MenuItems"> </constant> - <constant name="MENU_COPY" value="1"> + <constant name="MENU_COPY" value="1" enum="MenuItems"> </constant> - <constant name="MENU_PASTE" value="2"> + <constant name="MENU_PASTE" value="2" enum="MenuItems"> </constant> - <constant name="MENU_CLEAR" value="3"> + <constant name="MENU_CLEAR" value="3" enum="MenuItems"> </constant> - <constant name="MENU_SELECT_ALL" value="4"> + <constant name="MENU_SELECT_ALL" value="4" enum="MenuItems"> </constant> - <constant name="MENU_UNDO" value="5"> + <constant name="MENU_UNDO" value="5" enum="MenuItems"> </constant> - <constant name="MENU_MAX" value="6"> + <constant name="MENU_MAX" value="6" enum="MenuItems"> </constant> </constants> <theme_items> |