:github_url: hide .. meta:: :keywords: textarea .. _class_TextEdit: TextEdit ======== **Hereda:** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Heredado por:** :ref:`CodeEdit` Un editor de texto multilínea. .. rst-class:: classref-introduction-group Descripción ---------------------- A multiline text editor. It also has limited facilities for editing code, such as syntax highlighting support. For more advanced facilities for editing code, see :ref:`CodeEdit`. While entering text, it is possible to insert special characters using Unicode, OEM or Windows alt codes: - To enter Unicode codepoints, hold :kbd:`Alt` and type the codepoint on the numpad. For example, to enter the character ``á`` (U+00E1), hold :kbd:`Alt` and type :kbd:`+E1` on the numpad (the leading zeroes can be omitted). - To enter OEM codepoints, hold :kbd:`Alt` and type the code on the numpad. For example, to enter the character ``á`` (OEM 160), hold :kbd:`Alt` and type ``160`` on the numpad. - To enter Windows codepoints, hold :kbd:`Alt` and type the code on the numpad. For example, to enter the character ``á`` (Windows 0225), hold :kbd:`Alt` and type :kbd:`0`, :kbd:`2`, :kbd:`2`, :kbd:`5` on the numpad. The leading zero here must **not** be omitted, as this is how Windows codepoints are distinguished from OEM codepoints. \ **Note:** Most viewport, caret, and edit methods contain a ``caret_index`` argument for :ref:`caret_multiple` support. The argument should be one of the following: ``-1`` for all carets, ``0`` for the main caret, or greater than ``0`` for secondary carets in the order they were created. \ **Note:** When holding down :kbd:`Alt`, the vertical scroll wheel will scroll 5 times as fast as it would normally do. This also works in the Godot script editor. .. rst-class:: classref-reftable-group Propiedades ---------------------- .. table:: :widths: auto +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`AutowrapMode` | :ref:`autowrap_mode` | ``3`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`backspace_deletes_composite_character_enabled` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`caret_blink` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`caret_blink_interval` | ``0.65`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`caret_draw_when_editable_disabled` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`caret_mid_grapheme` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`caret_move_on_right_click` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`caret_multiple` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`CaretType` | :ref:`caret_type` | ``0`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`context_menu_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`custom_word_separators` | ``""`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`deselect_on_focus_loss_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`drag_and_drop_selection_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`draw_control_chars` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`draw_spaces` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`draw_tabs` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`editable` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`emoji_menu_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`empty_selection_clipboard_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`FocusMode` | focus_mode | ``2`` (overrides :ref:`Control`) | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`highlight_all_occurrences` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`highlight_current_line` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`indent_wrapped_lines` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`language` | ``""`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`middle_mouse_paste_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`minimap_draw` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`minimap_width` | ``80`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`CursorShape` | mouse_default_cursor_shape | ``1`` (overrides :ref:`Control`) | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`placeholder_text` | ``""`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`scroll_fit_content_height` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`scroll_fit_content_width` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`scroll_horizontal` | ``0`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`scroll_past_end_of_file` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`scroll_smooth` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`scroll_v_scroll_speed` | ``80.0`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`scroll_vertical` | ``0.0`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`selecting_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`shortcut_keys_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`StructuredTextParser` | :ref:`structured_text_bidi_override` | ``0`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`structured_text_bidi_override_options` | ``[]`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`SyntaxHighlighter` | :ref:`syntax_highlighter` | | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`tab_input_mode` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`text` | ``""`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`TextDirection` | :ref:`text_direction` | ``0`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`use_custom_word_separators` | ``false`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`use_default_word_separators` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`virtual_keyboard_enabled` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`virtual_keyboard_show_on_focus` | ``true`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ | :ref:`LineWrappingMode` | :ref:`wrap_mode` | ``0`` | +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Métodos -------------- .. table:: :widths: auto +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_backspace`\ (\ caret_index\: :ref:`int`\ ) |virtual| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_copy`\ (\ caret_index\: :ref:`int`\ ) |virtual| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_cut`\ (\ caret_index\: :ref:`int`\ ) |virtual| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_handle_unicode_input`\ (\ unicode_char\: :ref:`int`, caret_index\: :ref:`int`\ ) |virtual| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_paste`\ (\ caret_index\: :ref:`int`\ ) |virtual| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`_paste_primary_clipboard`\ (\ caret_index\: :ref:`int`\ ) |virtual| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`add_caret`\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`add_caret_at_carets`\ (\ below\: :ref:`bool`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`add_gutter`\ (\ at\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`add_selection_for_next_occurrence`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`adjust_carets_after_edit`\ (\ caret\: :ref:`int`, from_line\: :ref:`int`, from_col\: :ref:`int`, to_line\: :ref:`int`, to_col\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`adjust_viewport_to_caret`\ (\ caret_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`apply_ime`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`backspace`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`begin_complex_operation`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`begin_multicaret_edit`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`cancel_ime`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`center_viewport_to_caret`\ (\ caret_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`clear`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`clear_undo_history`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`collapse_carets`\ (\ from_line\: :ref:`int`, from_column\: :ref:`int`, to_line\: :ref:`int`, to_column\: :ref:`int`, inclusive\: :ref:`bool` = false\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`copy`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`cut`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`delete_selection`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`deselect`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`end_action`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`end_complex_operation`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`end_multicaret_edit`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_caret_column`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_caret_count`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_caret_draw_pos`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedInt32Array` | :ref:`get_caret_index_edit_order`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_caret_line`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_caret_wrap_index`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_first_non_whitespace_column`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_first_visible_line`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_gutter_count`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_gutter_name`\ (\ gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`GutterType` | :ref:`get_gutter_type`\ (\ gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_gutter_width`\ (\ gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`HScrollBar` | :ref:`get_h_scroll_bar`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_indent_level`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_last_full_visible_line`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_last_full_visible_line_wrap_index`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_last_unhidden_line`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_line`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_line_background_color`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2i` | :ref:`get_line_column_at_pos`\ (\ position\: :ref:`Vector2i`, clamp_line\: :ref:`bool` = true, clamp_column\: :ref:`bool` = true\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_line_count`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture2D` | :ref:`get_line_gutter_icon`\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_line_gutter_item_color`\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_line_gutter_metadata`\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_line_gutter_text`\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_line_height`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array`\[:ref:`Vector2i`\] | :ref:`get_line_ranges_from_carets`\ (\ only_selections\: :ref:`bool` = false, merge_adjacent\: :ref:`bool` = true\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_line_width`\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = -1\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_line_with_ime`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_line_wrap_count`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_line_wrap_index_at_column`\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedStringArray` | :ref:`get_line_wrapped_text`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_local_mouse_pos`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PopupMenu` | :ref:`get_menu`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_minimap_line_at_pos`\ (\ position\: :ref:`Vector2i`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_minimap_visible_lines`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_next_composite_character_column`\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2i` | :ref:`get_next_visible_line_index_offset_from`\ (\ line\: :ref:`int`, wrap_index\: :ref:`int`, visible_amount\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_next_visible_line_offset_from`\ (\ line\: :ref:`int`, visible_amount\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2i` | :ref:`get_pos_at_line_column`\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_previous_composite_character_column`\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2i` | :ref:`get_rect_at_line_column`\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_saved_version`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_scroll_pos_for_line`\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_selected_text`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_at_line_column`\ (\ line\: :ref:`int`, column\: :ref:`int`, include_edges\: :ref:`bool` = true, only_selections\: :ref:`bool` = true\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_column`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_from_column`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_from_line`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_line`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`SelectionMode` | :ref:`get_selection_mode`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_origin_column`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_origin_line`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_to_column`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_selection_to_line`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedInt32Array` | :ref:`get_sorted_carets`\ (\ include_ignored_carets\: :ref:`bool` = false\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_tab_size`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_total_gutter_width`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_total_visible_line_count`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`VScrollBar` | :ref:`get_v_scroll_bar`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_version`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_visible_line_count`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_visible_line_count_in_range`\ (\ from_line\: :ref:`int`, to_line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_word_at_pos`\ (\ position\: :ref:`Vector2`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_word_under_caret`\ (\ caret_index\: :ref:`int` = -1\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_ime_text`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_redo`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_selection`\ (\ caret_index\: :ref:`int` = -1\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_undo`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`insert_line_at`\ (\ line\: :ref:`int`, text\: :ref:`String`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`insert_text`\ (\ text\: :ref:`String`, line\: :ref:`int`, column\: :ref:`int`, before_selection_begin\: :ref:`bool` = true, before_selection_end\: :ref:`bool` = false\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`insert_text_at_caret`\ (\ text\: :ref:`String`, caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_caret_after_selection_origin`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_caret_visible`\ (\ caret_index\: :ref:`int` = 0\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_dragging_cursor`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_gutter_clickable`\ (\ gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_gutter_drawn`\ (\ gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_gutter_overwritable`\ (\ gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_in_mulitcaret_edit`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_line_gutter_clickable`\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_line_wrapped`\ (\ line\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_menu_visible`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_mouse_over_selection`\ (\ edges\: :ref:`bool`, caret_index\: :ref:`int` = -1\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_overtype_mode_enabled`\ (\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`menu_option`\ (\ option\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`merge_gutters`\ (\ from_line\: :ref:`int`, to_line\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`merge_overlapping_carets`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`multicaret_edit_ignore_caret`\ (\ caret_index\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`paste`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`paste_primary_clipboard`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`redo`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`remove_caret`\ (\ caret\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`remove_gutter`\ (\ gutter\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`remove_line_at`\ (\ line\: :ref:`int`, move_carets_down\: :ref:`bool` = true\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`remove_secondary_carets`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`remove_text`\ (\ from_line\: :ref:`int`, from_column\: :ref:`int`, to_line\: :ref:`int`, to_column\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2i` | :ref:`search`\ (\ text\: :ref:`String`, flags\: :ref:`int`, from_line\: :ref:`int`, from_column\: :ref:`int`\ ) |const| | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`select`\ (\ origin_line\: :ref:`int`, origin_column\: :ref:`int`, caret_line\: :ref:`int`, caret_column\: :ref:`int`, caret_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`select_all`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`select_word_under_caret`\ (\ caret_index\: :ref:`int` = -1\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_caret_column`\ (\ column\: :ref:`int`, adjust_viewport\: :ref:`bool` = true, caret_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_caret_line`\ (\ line\: :ref:`int`, adjust_viewport\: :ref:`bool` = true, can_be_hidden\: :ref:`bool` = true, wrap_index\: :ref:`int` = 0, caret_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_gutter_clickable`\ (\ gutter\: :ref:`int`, clickable\: :ref:`bool`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_gutter_custom_draw`\ (\ column\: :ref:`int`, draw_callback\: :ref:`Callable`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_gutter_draw`\ (\ gutter\: :ref:`int`, draw\: :ref:`bool`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_gutter_name`\ (\ gutter\: :ref:`int`, name\: :ref:`String`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_gutter_overwritable`\ (\ gutter\: :ref:`int`, overwritable\: :ref:`bool`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_gutter_type`\ (\ gutter\: :ref:`int`, type\: :ref:`GutterType`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_gutter_width`\ (\ gutter\: :ref:`int`, width\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line`\ (\ line\: :ref:`int`, new_text\: :ref:`String`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_as_center_visible`\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_as_first_visible`\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_as_last_visible`\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_background_color`\ (\ line\: :ref:`int`, color\: :ref:`Color`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_gutter_clickable`\ (\ line\: :ref:`int`, gutter\: :ref:`int`, clickable\: :ref:`bool`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_gutter_icon`\ (\ line\: :ref:`int`, gutter\: :ref:`int`, icon\: :ref:`Texture2D`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_gutter_item_color`\ (\ line\: :ref:`int`, gutter\: :ref:`int`, color\: :ref:`Color`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_gutter_metadata`\ (\ line\: :ref:`int`, gutter\: :ref:`int`, metadata\: :ref:`Variant`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_line_gutter_text`\ (\ line\: :ref:`int`, gutter\: :ref:`int`, text\: :ref:`String`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_overtype_mode_enabled`\ (\ enabled\: :ref:`bool`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_search_flags`\ (\ flags\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_search_text`\ (\ search_text\: :ref:`String`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_selection_mode`\ (\ mode\: :ref:`SelectionMode`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_selection_origin_column`\ (\ column\: :ref:`int`, caret_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_selection_origin_line`\ (\ line\: :ref:`int`, can_be_hidden\: :ref:`bool` = true, wrap_index\: :ref:`int` = -1, caret_index\: :ref:`int` = 0\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_tab_size`\ (\ size\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`set_tooltip_request_func`\ (\ callback\: :ref:`Callable`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`skip_selection_for_next_occurrence`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`start_action`\ (\ action\: :ref:`EditAction`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`swap_lines`\ (\ from_line\: :ref:`int`, to_line\: :ref:`int`\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`tag_saved_version`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`undo`\ (\ ) | +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-reftable-group Propiedades del Tema ---------------------------------------- .. table:: :widths: auto +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`background_color` | ``Color(0, 0, 0, 0)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`caret_background_color` | ``Color(0, 0, 0, 1)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`caret_color` | ``Color(0.875, 0.875, 0.875, 1)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`current_line_color` | ``Color(0.25, 0.25, 0.26, 0.8)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`font_color` | ``Color(0.875, 0.875, 0.875, 1)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`font_outline_color` | ``Color(0, 0, 0, 1)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`font_placeholder_color` | ``Color(0.875, 0.875, 0.875, 0.6)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`font_readonly_color` | ``Color(0.875, 0.875, 0.875, 0.5)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`font_selected_color` | ``Color(0, 0, 0, 0)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`search_result_border_color` | ``Color(0.3, 0.3, 0.3, 0.4)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`search_result_color` | ``Color(0.3, 0.3, 0.3, 1)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`selection_color` | ``Color(0.5, 0.5, 0.5, 1)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Color` | :ref:`word_highlighted_color` | ``Color(0.5, 0.5, 0.5, 0.25)`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`int` | :ref:`caret_width` | ``1`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`int` | :ref:`line_spacing` | ``4`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`int` | :ref:`outline_size` | ``0`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`int` | :ref:`wrap_offset` | ``10`` | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Font` | :ref:`font` | | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`int` | :ref:`font_size` | | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Texture2D` | :ref:`space` | | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`Texture2D` | :ref:`tab` | | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`StyleBox` | :ref:`focus` | | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`StyleBox` | :ref:`normal` | | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ | :ref:`StyleBox` | :ref:`read_only` | | +-----------------------------------+------------------------------------------------------------------------------------------+-------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Señales -------------- .. _class_TextEdit_signal_caret_changed: .. rst-class:: classref-signal **caret_changed**\ (\ ) :ref:`🔗` Emitida cuando cualquier cursor cambia de posición. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_signal_gutter_added: .. rst-class:: classref-signal **gutter_added**\ (\ ) :ref:`🔗` Emitted when a gutter is added. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_signal_gutter_clicked: .. rst-class:: classref-signal **gutter_clicked**\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) :ref:`🔗` Emitida cuando se cierra una pestaña. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_signal_gutter_removed: .. rst-class:: classref-signal **gutter_removed**\ (\ ) :ref:`🔗` Emitted when a gutter is removed. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_signal_lines_edited_from: .. rst-class:: classref-signal **lines_edited_from**\ (\ from_line\: :ref:`int`, to_line\: :ref:`int`\ ) :ref:`🔗` Emitted immediately when the text changes. When text is added ``from_line`` will be less than ``to_line``. On a remove ``to_line`` will be less than ``from_line``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_signal_text_changed: .. rst-class:: classref-signal **text_changed**\ (\ ) :ref:`🔗` Emitida cuando el texto cambia. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_signal_text_set: .. rst-class:: classref-signal **text_set**\ (\ ) :ref:`🔗` Emitida cuando se llama a :ref:`clear()` o se establece :ref:`text`. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumeraciones -------------------------- .. _enum_TextEdit_MenuItems: .. rst-class:: classref-enumeration enum **MenuItems**: :ref:`🔗` .. _class_TextEdit_constant_MENU_CUT: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_CUT** = ``0`` Corta (copia y borra) el texto seleccionado. .. _class_TextEdit_constant_MENU_COPY: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_COPY** = ``1`` Copia el texto seleccionado. .. _class_TextEdit_constant_MENU_PASTE: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_PASTE** = ``2`` Pega el texto del portapapeles sobre el texto seleccionado (o en la posición del cursor). .. _class_TextEdit_constant_MENU_CLEAR: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_CLEAR** = ``3`` Borra todo el texto **TextEdit**. .. _class_TextEdit_constant_MENU_SELECT_ALL: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_SELECT_ALL** = ``4`` Selecciona todo el texto **TextEdit**. .. _class_TextEdit_constant_MENU_UNDO: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_UNDO** = ``5`` Deshace la acción anterior. .. _class_TextEdit_constant_MENU_REDO: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_REDO** = ``6`` Rehace la acción anterior. .. _class_TextEdit_constant_MENU_SUBMENU_TEXT_DIR: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_SUBMENU_TEXT_DIR** = ``7`` ID del submenú "Dirección de escritura del texto". .. _class_TextEdit_constant_MENU_DIR_INHERITED: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_DIR_INHERITED** = ``8`` Establece la dirección del texto como heredada. .. _class_TextEdit_constant_MENU_DIR_AUTO: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_DIR_AUTO** = ``9`` Establece la dirección del texto en automática. .. _class_TextEdit_constant_MENU_DIR_LTR: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_DIR_LTR** = ``10`` Establece la dirección del texto de izquierda a derecha. .. _class_TextEdit_constant_MENU_DIR_RTL: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_DIR_RTL** = ``11`` Establece la dirección del texto de derecha a izquierda. .. _class_TextEdit_constant_MENU_DISPLAY_UCC: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_DISPLAY_UCC** = ``12`` Alterna la visualización de los caracteres de control. .. _class_TextEdit_constant_MENU_SUBMENU_INSERT_UCC: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_SUBMENU_INSERT_UCC** = ``13`` ID del submenú "Insertar carácter de control". .. _class_TextEdit_constant_MENU_INSERT_LRM: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_LRM** = ``14`` Inserta el carácter de marca de izquierda a derecha (LRM). .. _class_TextEdit_constant_MENU_INSERT_RLM: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_RLM** = ``15`` Inserta el carácter de marca de derecha a izquierda (RLM). .. _class_TextEdit_constant_MENU_INSERT_LRE: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_LRE** = ``16`` Inserta el carácter de inicio de incrustación de izquierda a derecha (LRE). .. _class_TextEdit_constant_MENU_INSERT_RLE: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_RLE** = ``17`` Inserta el carácter de inicio de incrustación de derecha a izquierda (RLE). .. _class_TextEdit_constant_MENU_INSERT_LRO: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_LRO** = ``18`` Inserta el carácter de inicio de sobrescritura de izquierda a derecha (LRO). .. _class_TextEdit_constant_MENU_INSERT_RLO: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_RLO** = ``19`` Inserta el carácter de inicio de sobrescritura de derecha a izquierda (RLO). .. _class_TextEdit_constant_MENU_INSERT_PDF: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_PDF** = ``20`` Inserta el carácter de formato de dirección emergente (PDF). .. _class_TextEdit_constant_MENU_INSERT_ALM: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_ALM** = ``21`` Inserta el carácter de marca de letra árabe (ALM). .. _class_TextEdit_constant_MENU_INSERT_LRI: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_LRI** = ``22`` Inserta el carácter de aislamiento de izquierda a derecha (LRI). .. _class_TextEdit_constant_MENU_INSERT_RLI: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_RLI** = ``23`` Inserta el carácter de aislamiento de derecha a izquierda (RLI). .. _class_TextEdit_constant_MENU_INSERT_FSI: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_FSI** = ``24`` Inserta el primer carácter de aislamiento fuerte (FSI). .. _class_TextEdit_constant_MENU_INSERT_PDI: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_PDI** = ``25`` Inserta el carácter de aislamiento de dirección emergente (PDI). .. _class_TextEdit_constant_MENU_INSERT_ZWJ: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_ZWJ** = ``26`` Inserta el carácter de unión de ancho cero (ZWJ). .. _class_TextEdit_constant_MENU_INSERT_ZWNJ: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_ZWNJ** = ``27`` Inserta el carácter de no unión de ancho cero (ZWNJ). .. _class_TextEdit_constant_MENU_INSERT_WJ: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_WJ** = ``28`` Inserta el carácter de unión de palabras (WJ). .. _class_TextEdit_constant_MENU_INSERT_SHY: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_INSERT_SHY** = ``29`` Inserta el carácter de guion suave (SHY). .. _class_TextEdit_constant_MENU_EMOJI_AND_SYMBOL: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_EMOJI_AND_SYMBOL** = ``30`` Abre el selector de emojis y símbolos del sistema. .. _class_TextEdit_constant_MENU_MAX: .. rst-class:: classref-enumeration-constant :ref:`MenuItems` **MENU_MAX** = ``31`` Representa el tamaño del enum :ref:`MenuItems`. .. rst-class:: classref-item-separator ---- .. _enum_TextEdit_EditAction: .. rst-class:: classref-enumeration enum **EditAction**: :ref:`🔗` .. _class_TextEdit_constant_ACTION_NONE: .. rst-class:: classref-enumeration-constant :ref:`EditAction` **ACTION_NONE** = ``0`` Ninguna acción actual. .. _class_TextEdit_constant_ACTION_TYPING: .. rst-class:: classref-enumeration-constant :ref:`EditAction` **ACTION_TYPING** = ``1`` Una acción de mecanografía. .. _class_TextEdit_constant_ACTION_BACKSPACE: .. rst-class:: classref-enumeration-constant :ref:`EditAction` **ACTION_BACKSPACE** = ``2`` A backwards delete action. .. _class_TextEdit_constant_ACTION_DELETE: .. rst-class:: classref-enumeration-constant :ref:`EditAction` **ACTION_DELETE** = ``3`` Una acción de eliminación hacia adelante. .. rst-class:: classref-item-separator ---- .. _enum_TextEdit_SearchFlags: .. rst-class:: classref-enumeration enum **SearchFlags**: :ref:`🔗` .. _class_TextEdit_constant_SEARCH_MATCH_CASE: .. rst-class:: classref-enumeration-constant :ref:`SearchFlags` **SEARCH_MATCH_CASE** = ``1`` Coincide con el caso cuando se busca. .. _class_TextEdit_constant_SEARCH_WHOLE_WORDS: .. rst-class:: classref-enumeration-constant :ref:`SearchFlags` **SEARCH_WHOLE_WORDS** = ``2`` Coincide con palabras enteras cuando se busca. .. _class_TextEdit_constant_SEARCH_BACKWARDS: .. rst-class:: classref-enumeration-constant :ref:`SearchFlags` **SEARCH_BACKWARDS** = ``4`` Busca desde el final hasta el principio. .. rst-class:: classref-item-separator ---- .. _enum_TextEdit_CaretType: .. rst-class:: classref-enumeration enum **CaretType**: :ref:`🔗` .. _class_TextEdit_constant_CARET_TYPE_LINE: .. rst-class:: classref-enumeration-constant :ref:`CaretType` **CARET_TYPE_LINE** = ``0`` Cursor de línea vertical. .. _class_TextEdit_constant_CARET_TYPE_BLOCK: .. rst-class:: classref-enumeration-constant :ref:`CaretType` **CARET_TYPE_BLOCK** = ``1`` Cursor de bloque. .. rst-class:: classref-item-separator ---- .. _enum_TextEdit_SelectionMode: .. rst-class:: classref-enumeration enum **SelectionMode**: :ref:`🔗` .. _class_TextEdit_constant_SELECTION_MODE_NONE: .. rst-class:: classref-enumeration-constant :ref:`SelectionMode` **SELECTION_MODE_NONE** = ``0`` No seleccionado. .. _class_TextEdit_constant_SELECTION_MODE_SHIFT: .. rst-class:: classref-enumeration-constant :ref:`SelectionMode` **SELECTION_MODE_SHIFT** = ``1`` Select as if ``shift`` is pressed. .. _class_TextEdit_constant_SELECTION_MODE_POINTER: .. rst-class:: classref-enumeration-constant :ref:`SelectionMode` **SELECTION_MODE_POINTER** = ``2`` Select single characters as if the user single clicked. .. _class_TextEdit_constant_SELECTION_MODE_WORD: .. rst-class:: classref-enumeration-constant :ref:`SelectionMode` **SELECTION_MODE_WORD** = ``3`` Select whole words as if the user double clicked. .. _class_TextEdit_constant_SELECTION_MODE_LINE: .. rst-class:: classref-enumeration-constant :ref:`SelectionMode` **SELECTION_MODE_LINE** = ``4`` Select whole lines as if the user triple clicked. .. rst-class:: classref-item-separator ---- .. _enum_TextEdit_LineWrappingMode: .. rst-class:: classref-enumeration enum **LineWrappingMode**: :ref:`🔗` .. _class_TextEdit_constant_LINE_WRAPPING_NONE: .. rst-class:: classref-enumeration-constant :ref:`LineWrappingMode` **LINE_WRAPPING_NONE** = ``0`` El ajuste de línea está deshabilitado. .. _class_TextEdit_constant_LINE_WRAPPING_BOUNDARY: .. rst-class:: classref-enumeration-constant :ref:`LineWrappingMode` **LINE_WRAPPING_BOUNDARY** = ``1`` Line wrapping occurs at the control boundary, beyond what would normally be visible. .. rst-class:: classref-item-separator ---- .. _enum_TextEdit_GutterType: .. rst-class:: classref-enumeration enum **GutterType**: :ref:`🔗` .. _class_TextEdit_constant_GUTTER_TYPE_STRING: .. rst-class:: classref-enumeration-constant :ref:`GutterType` **GUTTER_TYPE_STRING** = ``0`` When a gutter is set to string using :ref:`set_gutter_type()`, it is used to contain text set via the :ref:`set_line_gutter_text()` method. .. _class_TextEdit_constant_GUTTER_TYPE_ICON: .. rst-class:: classref-enumeration-constant :ref:`GutterType` **GUTTER_TYPE_ICON** = ``1`` When a gutter is set to icon using :ref:`set_gutter_type()`, it is used to contain an icon set via the :ref:`set_line_gutter_icon()` method. .. _class_TextEdit_constant_GUTTER_TYPE_CUSTOM: .. rst-class:: classref-enumeration-constant :ref:`GutterType` **GUTTER_TYPE_CUSTOM** = ``2`` When a gutter is set to custom using :ref:`set_gutter_type()`, it is used to contain custom visuals controlled by a callback method set via the :ref:`set_gutter_custom_draw()` method. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descripciones de Propiedades -------------------------------------------------------- .. _class_TextEdit_property_autowrap_mode: .. rst-class:: classref-property :ref:`AutowrapMode` **autowrap_mode** = ``3`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_autowrap_mode**\ (\ value\: :ref:`AutowrapMode`\ ) - :ref:`AutowrapMode` **get_autowrap_mode**\ (\ ) If :ref:`wrap_mode` is set to :ref:`LINE_WRAPPING_BOUNDARY`, sets text wrapping mode. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_backspace_deletes_composite_character_enabled: .. rst-class:: classref-property :ref:`bool` **backspace_deletes_composite_character_enabled** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_backspace_deletes_composite_character_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_backspace_deletes_composite_character_enabled**\ (\ ) Si es ``true``, y :ref:`caret_mid_grapheme` es ``false``, la tecla de retroceso elimina un carácter compuesto completo como ❤️‍🩹, en lugar de eliminar parte del carácter compuesto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_caret_blink: .. rst-class:: classref-property :ref:`bool` **caret_blink** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_caret_blink_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_caret_blink_enabled**\ (\ ) Si es ``true``, el cursor visual parpadea. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_caret_blink_interval: .. rst-class:: classref-property :ref:`float` **caret_blink_interval** = ``0.65`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_caret_blink_interval**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_caret_blink_interval**\ (\ ) El intervalo en el que el cursor parpadea (en segundos). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_caret_draw_when_editable_disabled: .. rst-class:: classref-property :ref:`bool` **caret_draw_when_editable_disabled** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_draw_caret_when_editable_disabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_drawing_caret_when_editable_disabled**\ (\ ) Si es ``true``, el cursor será visible cuando :ref:`editable` esté deshabilitado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_caret_mid_grapheme: .. rst-class:: classref-property :ref:`bool` **caret_mid_grapheme** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_caret_mid_grapheme_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_caret_mid_grapheme_enabled**\ (\ ) Permite mover el cursor, seleccionar y eliminar los componentes individuales de caracteres compuestos. \ **Nota:** :kbd:`Retroceso` siempre elimina los componentes individuales de caracteres compuestos. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_caret_move_on_right_click: .. rst-class:: classref-property :ref:`bool` **caret_move_on_right_click** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_move_caret_on_right_click_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_move_caret_on_right_click_enabled**\ (\ ) If ``true``, a right-click moves the caret at the mouse position before displaying the context menu. If ``false``, the context menu ignores mouse location. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_caret_multiple: .. rst-class:: classref-property :ref:`bool` **caret_multiple** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_multiple_carets_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_multiple_carets_enabled**\ (\ ) Si es ``true``, se permiten varios cursores. Al hacer clic izquierdo con :kbd:`Alt`, se agrega un nuevo cursor. Véase :ref:`add_caret()` y :ref:`get_caret_count()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_caret_type: .. rst-class:: classref-property :ref:`CaretType` **caret_type** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_caret_type**\ (\ value\: :ref:`CaretType`\ ) - :ref:`CaretType` **get_caret_type**\ (\ ) Establece el tipo de cursor a dibujar. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_context_menu_enabled: .. rst-class:: classref-property :ref:`bool` **context_menu_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_context_menu_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_context_menu_enabled**\ (\ ) Si es ``true``, un clic con el botón derecho del ratón muestra el menú contextual. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_custom_word_separators: .. rst-class:: classref-property :ref:`String` **custom_word_separators** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_custom_word_separators**\ (\ value\: :ref:`String`\ ) - :ref:`String` **get_custom_word_separators**\ (\ ) The characters to consider as word delimiters if :ref:`use_custom_word_separators` is ``true``. The characters should be defined without separation, for example ``#_!``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_deselect_on_focus_loss_enabled: .. rst-class:: classref-property :ref:`bool` **deselect_on_focus_loss_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_deselect_on_focus_loss_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_deselect_on_focus_loss_enabled**\ (\ ) Si es ``true``, el texto seleccionado se deseleccionará cuando se pierda el foco. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_drag_and_drop_selection_enabled: .. rst-class:: classref-property :ref:`bool` **drag_and_drop_selection_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_drag_and_drop_selection_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_drag_and_drop_selection_enabled**\ (\ ) If ``true``, allow drag and drop of selected text. Text can still be dropped from other sources. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_draw_control_chars: .. rst-class:: classref-property :ref:`bool` **draw_control_chars** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_draw_control_chars**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_draw_control_chars**\ (\ ) Si es ``true``, se muestran los caracteres de control. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_draw_spaces: .. rst-class:: classref-property :ref:`bool` **draw_spaces** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_draw_spaces**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_drawing_spaces**\ (\ ) Si es ``true``, el carácter "espacio" tendrá una representación visible. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_draw_tabs: .. rst-class:: classref-property :ref:`bool` **draw_tabs** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_draw_tabs**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_drawing_tabs**\ (\ ) Si es ``true``, el carácter "tab" tendrá una representación visible. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_editable: .. rst-class:: classref-property :ref:`bool` **editable** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_editable**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_editable**\ (\ ) Si es ``false``, el texto existente no puede ser modificado y no se puede añadir un nuevo texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_emoji_menu_enabled: .. rst-class:: classref-property :ref:`bool` **emoji_menu_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_emoji_menu_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_emoji_menu_enabled**\ (\ ) Si es ``true``, el menú "Emojis y símbolos" está habilitado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_empty_selection_clipboard_enabled: .. rst-class:: classref-property :ref:`bool` **empty_selection_clipboard_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_empty_selection_clipboard_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_empty_selection_clipboard_enabled**\ (\ ) Si es ``true``, copiar o cortar sin una selección se realiza en todas las líneas con un cursor. De lo contrario, copiar y cortar requieren una selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_highlight_all_occurrences: .. rst-class:: classref-property :ref:`bool` **highlight_all_occurrences** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_highlight_all_occurrences**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_highlight_all_occurrences_enabled**\ (\ ) Si es ``true``, se resaltarán todas las ocurrencias del texto seleccionado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_highlight_current_line: .. rst-class:: classref-property :ref:`bool` **highlight_current_line** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_highlight_current_line**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_highlight_current_line_enabled**\ (\ ) Si es ``true``, se resalta la línea que contiene el cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_indent_wrapped_lines: .. rst-class:: classref-property :ref:`bool` **indent_wrapped_lines** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_indent_wrapped_lines**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_indent_wrapped_lines**\ (\ ) Si es ``true``, todas las líneas envueltas se indentan a la misma cantidad que la línea no envuelta. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_language: .. rst-class:: classref-property :ref:`String` **language** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_language**\ (\ value\: :ref:`String`\ ) - :ref:`String` **get_language**\ (\ ) Language code used for line-breaking and text shaping algorithms. If left empty, the current locale is used instead. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_middle_mouse_paste_enabled: .. rst-class:: classref-property :ref:`bool` **middle_mouse_paste_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_middle_mouse_paste_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_middle_mouse_paste_enabled**\ (\ ) Si es ``false``, se deshabilitará el uso del botón central del ratón para pegar el contenido del portapapeles. \ **Nota:** Este método solo está implementado en Linux. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_minimap_draw: .. rst-class:: classref-property :ref:`bool` **minimap_draw** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_draw_minimap**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_drawing_minimap**\ (\ ) If ``true``, a minimap is shown, providing an outline of your source code. The minimap uses a fixed-width text size. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_minimap_width: .. rst-class:: classref-property :ref:`int` **minimap_width** = ``80`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_minimap_width**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_minimap_width**\ (\ ) El ancho, en píxeles, del minimapa. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_placeholder_text: .. rst-class:: classref-property :ref:`String` **placeholder_text** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_placeholder**\ (\ value\: :ref:`String`\ ) - :ref:`String` **get_placeholder**\ (\ ) Text shown when the **TextEdit** is empty. It is **not** the **TextEdit**'s default value (see :ref:`text`). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_scroll_fit_content_height: .. rst-class:: classref-property :ref:`bool` **scroll_fit_content_height** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_fit_content_height_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_fit_content_height_enabled**\ (\ ) If ``true``, **TextEdit** will disable vertical scroll and fit minimum height to the number of visible lines. When both this property and :ref:`scroll_fit_content_width` are ``true``, no scrollbars will be displayed. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_scroll_fit_content_width: .. rst-class:: classref-property :ref:`bool` **scroll_fit_content_width** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_fit_content_width_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_fit_content_width_enabled**\ (\ ) If ``true``, **TextEdit** will disable horizontal scroll and fit minimum width to the widest line in the text. When both this property and :ref:`scroll_fit_content_height` are ``true``, no scrollbars will be displayed. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_scroll_horizontal: .. rst-class:: classref-property :ref:`int` **scroll_horizontal** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_h_scroll**\ (\ value\: :ref:`int`\ ) - :ref:`int` **get_h_scroll**\ (\ ) If there is a horizontal scrollbar, this determines the current horizontal scroll value in pixels. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_scroll_past_end_of_file: .. rst-class:: classref-property :ref:`bool` **scroll_past_end_of_file** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_scroll_past_end_of_file_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_scroll_past_end_of_file_enabled**\ (\ ) Allow scrolling past the last line into "virtual" space. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_scroll_smooth: .. rst-class:: classref-property :ref:`bool` **scroll_smooth** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_smooth_scroll_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_smooth_scroll_enabled**\ (\ ) Scroll smoothly over the text rather than jumping to the next location. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_scroll_v_scroll_speed: .. rst-class:: classref-property :ref:`float` **scroll_v_scroll_speed** = ``80.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_v_scroll_speed**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_v_scroll_speed**\ (\ ) Sets the scroll speed with the minimap or when :ref:`scroll_smooth` is enabled. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_scroll_vertical: .. rst-class:: classref-property :ref:`float` **scroll_vertical** = ``0.0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_v_scroll**\ (\ value\: :ref:`float`\ ) - :ref:`float` **get_v_scroll**\ (\ ) If there is a vertical scrollbar, this determines the current vertical scroll value in line numbers, starting at 0 for the top line. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_selecting_enabled: .. rst-class:: classref-property :ref:`bool` **selecting_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_selecting_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_selecting_enabled**\ (\ ) Si es ``true``, se puede seleccionar el texto. Si es ``false``, el texto no puede ser seleccionado por el usuario o por los métodos :ref:`select()` o :ref:`select_all()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_shortcut_keys_enabled: .. rst-class:: classref-property :ref:`bool` **shortcut_keys_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_shortcut_keys_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_shortcut_keys_enabled**\ (\ ) Si es ``true``, las teclas de atajo para los elementos del menú contextual están habilitadas, incluso si el menú contextual está desactivado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_structured_text_bidi_override: .. rst-class:: classref-property :ref:`StructuredTextParser` **structured_text_bidi_override** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_structured_text_bidi_override**\ (\ value\: :ref:`StructuredTextParser`\ ) - :ref:`StructuredTextParser` **get_structured_text_bidi_override**\ (\ ) Establece la sobrescritura del algoritmo BiDi para el texto estructurado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_structured_text_bidi_override_options: .. rst-class:: classref-property :ref:`Array` **structured_text_bidi_override_options** = ``[]`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_structured_text_bidi_override_options**\ (\ value\: :ref:`Array`\ ) - :ref:`Array` **get_structured_text_bidi_override_options**\ (\ ) Establece opciones adicionales para la sobrescritura BiDi. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_syntax_highlighter: .. rst-class:: classref-property :ref:`SyntaxHighlighter` **syntax_highlighter** :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_syntax_highlighter**\ (\ value\: :ref:`SyntaxHighlighter`\ ) - :ref:`SyntaxHighlighter` **get_syntax_highlighter**\ (\ ) The syntax highlighter to use. \ **Note:** A :ref:`SyntaxHighlighter` instance should not be used across multiple **TextEdit** nodes. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_tab_input_mode: .. rst-class:: classref-property :ref:`bool` **tab_input_mode** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_tab_input_mode**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_tab_input_mode**\ (\ ) If ``true``, :ref:`ProjectSettings.input/ui_text_indent` input ``Tab`` character, otherwise it moves keyboard focus to the next :ref:`Control` in the scene. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_text: .. rst-class:: classref-property :ref:`String` **text** = ``""`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_text**\ (\ value\: :ref:`String`\ ) - :ref:`String` **get_text**\ (\ ) Valor de string de **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_text_direction: .. rst-class:: classref-property :ref:`TextDirection` **text_direction** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_text_direction**\ (\ value\: :ref:`TextDirection`\ ) - :ref:`TextDirection` **get_text_direction**\ (\ ) Dirección base de escritura del texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_use_custom_word_separators: .. rst-class:: classref-property :ref:`bool` **use_custom_word_separators** = ``false`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_use_custom_word_separators**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_custom_word_separators_enabled**\ (\ ) If ``false``, using :kbd:`Ctrl + Left` or :kbd:`Ctrl + Right` (:kbd:`Cmd + Left` or :kbd:`Cmd + Right` on macOS) bindings will use the behavior of :ref:`use_default_word_separators`. If ``true``, it will also stop the caret if a character within :ref:`custom_word_separators` is detected. Useful for subword moving. This behavior also will be applied to the behavior of text selection. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_use_default_word_separators: .. rst-class:: classref-property :ref:`bool` **use_default_word_separators** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_use_default_word_separators**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_default_word_separators_enabled**\ (\ ) If ``false``, using :kbd:`Ctrl + Left` or :kbd:`Ctrl + Right` (:kbd:`Cmd + Left` or :kbd:`Cmd + Right` on macOS) bindings will stop moving caret only if a space or punctuation is detected. If ``true``, it will also stop the caret if a character is part of ``!"#$%&'()*+,-./:;<=>?@[\]^`{|}~``, the Unicode General Punctuation table, or the Unicode CJK Punctuation table. Useful for subword moving. This behavior also will be applied to the behavior of text selection. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_virtual_keyboard_enabled: .. rst-class:: classref-property :ref:`bool` **virtual_keyboard_enabled** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_virtual_keyboard_enabled**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **is_virtual_keyboard_enabled**\ (\ ) Si es ``true``, el teclado virtual nativo se habilitará en las plataformas que lo soporten. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_virtual_keyboard_show_on_focus: .. rst-class:: classref-property :ref:`bool` **virtual_keyboard_show_on_focus** = ``true`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_virtual_keyboard_show_on_focus**\ (\ value\: :ref:`bool`\ ) - :ref:`bool` **get_virtual_keyboard_show_on_focus**\ (\ ) Si es ``true``, el teclado virtual nativo se mostrará en los eventos de foco en las plataformas que lo soporten. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_property_wrap_mode: .. rst-class:: classref-property :ref:`LineWrappingMode` **wrap_mode** = ``0`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **set_line_wrapping_mode**\ (\ value\: :ref:`LineWrappingMode`\ ) - :ref:`LineWrappingMode` **get_line_wrapping_mode**\ (\ ) Sets the line wrapping mode to use. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descripciones de Métodos ------------------------------------------------ .. _class_TextEdit_private_method__backspace: .. rst-class:: classref-method |void| **_backspace**\ (\ caret_index\: :ref:`int`\ ) |virtual| :ref:`🔗` Sobrescribe este método para definir qué sucede cuando el usuario presiona la tecla de retroceso. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_private_method__copy: .. rst-class:: classref-method |void| **_copy**\ (\ caret_index\: :ref:`int`\ ) |virtual| :ref:`🔗` Sobrescribe este método para definir qué sucede cuando el usuario realiza una operación de copiado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_private_method__cut: .. rst-class:: classref-method |void| **_cut**\ (\ caret_index\: :ref:`int`\ ) |virtual| :ref:`🔗` Sobrescribe este método para definir qué sucede cuando el usuario realiza una operación de corte. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_private_method__handle_unicode_input: .. rst-class:: classref-method |void| **_handle_unicode_input**\ (\ unicode_char\: :ref:`int`, caret_index\: :ref:`int`\ ) |virtual| :ref:`🔗` Sobrescribe este método para definir qué sucede cuando el usuario introduce la tecla ``unicode_char`` proporcionada. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_private_method__paste: .. rst-class:: classref-method |void| **_paste**\ (\ caret_index\: :ref:`int`\ ) |virtual| :ref:`🔗` Sobrescribe este método para definir qué sucede cuando el usuario realiza una operación de pegado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_private_method__paste_primary_clipboard: .. rst-class:: classref-method |void| **_paste_primary_clipboard**\ (\ caret_index\: :ref:`int`\ ) |virtual| :ref:`🔗` Sobrescribe este método para definir qué sucede cuando el usuario realiza una operación de pegado con el botón central del ratón. \ **Nota:** Este método solo está implementado en Linux. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_add_caret: .. rst-class:: classref-method :ref:`int` **add_caret**\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) :ref:`🔗` Añade un nuevo cursor de texto en la ubicación dada. Devuelve el índice del nuevo cursor, o ``-1`` si la ubicación no es válida. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_add_caret_at_carets: .. rst-class:: classref-method |void| **add_caret_at_carets**\ (\ below\: :ref:`bool`\ ) :ref:`🔗` Añade un cursor de texto adicional por encima o por debajo de cada cursor. Si ``below`` es ``true``, el nuevo cursor se añadirá debajo; de lo contrario, se añadirá por encima. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_add_gutter: .. rst-class:: classref-method |void| **add_gutter**\ (\ at\: :ref:`int` = -1\ ) :ref:`🔗` Register a new gutter to this **TextEdit**. Use ``at`` to have a specific gutter order. A value of ``-1`` appends the gutter to the right. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_add_selection_for_next_occurrence: .. rst-class:: classref-method |void| **add_selection_for_next_occurrence**\ (\ ) :ref:`🔗` Añade una selección y un cursor de texto para la siguiente ocurrencia de la selección actual. Si no hay ninguna selección activa, selecciona la palabra bajo el cursor de texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_adjust_carets_after_edit: .. rst-class:: classref-method |void| **adjust_carets_after_edit**\ (\ caret\: :ref:`int`, from_line\: :ref:`int`, from_col\: :ref:`int`, to_line\: :ref:`int`, to_col\: :ref:`int`\ ) :ref:`🔗` **Obsoleto:** No longer necessary since methods now adjust carets themselves. Este método no hace nada. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_adjust_viewport_to_caret: .. rst-class:: classref-method |void| **adjust_viewport_to_caret**\ (\ caret_index\: :ref:`int` = 0\ ) :ref:`🔗` Ajusta el viewport para que el cursor sea visible. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_apply_ime: .. rst-class:: classref-method |void| **apply_ime**\ (\ ) :ref:`🔗` Aplica texto del `Editor de métodos de entrada `__ (IME) a cada cursor y cierra el IME si está abierto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_backspace: .. rst-class:: classref-method |void| **backspace**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Se llama cuando el usuario pulsa la tecla de retroceso. Se puede sobrescribir con :ref:`_backspace()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_begin_complex_operation: .. rst-class:: classref-method |void| **begin_complex_operation**\ (\ ) :ref:`🔗` Inicia una edición de varias partes. Todas las ediciones se tratarán como una única acción hasta que se llame a :ref:`end_complex_operation()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_begin_multicaret_edit: .. rst-class:: classref-method |void| **begin_multicaret_edit**\ (\ ) :ref:`🔗` Inicia una edición para múltiples cursores. La edición debe finalizar con :ref:`end_multicaret_edit()`. Las ediciones con múltiples cursores se pueden usar para editar texto en varias posiciones a la vez y retrasar la fusión de los cursores hasta el final, para que los índices de los cursores no se vean afectados inmediatamente. :ref:`begin_multicaret_edit()` y :ref:`end_multicaret_edit()` se pueden anidar, y la fusión ocurrirá en el último :ref:`end_multicaret_edit()`. :: begin_complex_operation() begin_multicaret_edit() for i in range(get_caret_count()): if multicaret_edit_ignore_caret(i): continue # Lógica aquí. end_multicaret_edit() end_complex_operation() .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_cancel_ime: .. rst-class:: classref-method |void| **cancel_ime**\ (\ ) :ref:`🔗` Closes the `Input Method Editor `__ (IME) if it is open. Any text in the IME will be lost. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_center_viewport_to_caret: .. rst-class:: classref-method |void| **center_viewport_to_caret**\ (\ caret_index\: :ref:`int` = 0\ ) :ref:`🔗` Centra la vista en la línea en la que se encuentra el cursor de edición. Esto también restablece el valor de :ref:`scroll_horizontal` a ``0``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_clear: .. rst-class:: classref-method |void| **clear**\ (\ ) :ref:`🔗` Realiza un reinicio completo de **TextEdit**, incluyendo el historial de deshacer. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_clear_undo_history: .. rst-class:: classref-method |void| **clear_undo_history**\ (\ ) :ref:`🔗` Limpia el historial de deshacer. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_collapse_carets: .. rst-class:: classref-method |void| **collapse_carets**\ (\ from_line\: :ref:`int`, from_column\: :ref:`int`, to_line\: :ref:`int`, to_column\: :ref:`int`, inclusive\: :ref:`bool` = false\ ) :ref:`🔗` Colapsa todos los cursores en el rango dado a la posición de ``from_line`` y ``from_column``. \ ``inclusive`` se aplica a ambos extremos. Si :ref:`is_in_mulitcaret_edit()` es ``true``, los cursores que se colapsan serán ``true`` para :ref:`multicaret_edit_ignore_caret()`. Se llamará a :ref:`merge_overlapping_carets()` si se colapsó algún cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_copy: .. rst-class:: classref-method |void| **copy**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Copia la selección de texto actual. Puede ser sobreescrito con :ref:`_copy()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_cut: .. rst-class:: classref-method |void| **cut**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Corta la selección actual. Puede ser sobreescrito con :ref:`_cut()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_delete_selection: .. rst-class:: classref-method |void| **delete_selection**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Elimina el texto seleccionado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_deselect: .. rst-class:: classref-method |void| **deselect**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Deselecciona la selección actual. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_end_action: .. rst-class:: classref-method |void| **end_action**\ (\ ) :ref:`🔗` Marca el final de los pasos en la acción actual iniciada con :ref:`start_action()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_end_complex_operation: .. rst-class:: classref-method |void| **end_complex_operation**\ (\ ) :ref:`🔗` Finaliza una edición multiparte, iniciada con :ref:`begin_complex_operation()`. Si se llama fuera de una operación compleja, la operación actual se empuja a la pila de deshacer/rehacer. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_end_multicaret_edit: .. rst-class:: classref-method |void| **end_multicaret_edit**\ (\ ) :ref:`🔗` Finaliza una edición para múltiples cursores, que fue iniciada con :ref:`begin_multicaret_edit()`. Si esta fue la última llamada a :ref:`end_multicaret_edit()` y se llamó a :ref:`merge_overlapping_carets()`, los cursores se fusionarán. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_caret_column: .. rst-class:: classref-method :ref:`int` **get_caret_column**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la columna en la que se encuentra el cursor de edición. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_caret_count: .. rst-class:: classref-method :ref:`int` **get_caret_count**\ (\ ) |const| :ref:`🔗` Devuelve el número de cursores en este **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_caret_draw_pos: .. rst-class:: classref-method :ref:`Vector2` **get_caret_draw_pos**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la posición de dibujo del píxel del cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_caret_index_edit_order: .. rst-class:: classref-method :ref:`PackedInt32Array` **get_caret_index_edit_order**\ (\ ) :ref:`🔗` **Obsoleto:** Carets no longer need to be edited in any specific order. If the carets need to be sorted, use :ref:`get_sorted_carets()` instead. Devuelve una lista de índices de cursores en su orden de edición, esto se hace de abajo hacia arriba. El orden de edición se refiere a la forma en que se aplican acciones como :ref:`insert_text_at_caret()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_caret_line: .. rst-class:: classref-method :ref:`int` **get_caret_line**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la línea en la que está el cursor de edición. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_caret_wrap_index: .. rst-class:: classref-method :ref:`int` **get_caret_wrap_index**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve el índice de ajuste en el que se encuentra el cursor de edición. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_first_non_whitespace_column: .. rst-class:: classref-method :ref:`int` **get_first_non_whitespace_column**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve la primera columna que contiene un carácter que no es un espacio en blanco en la línea dada. Si solo hay espacios en blanco, devuelve el número de caracteres. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_first_visible_line: .. rst-class:: classref-method :ref:`int` **get_first_visible_line**\ (\ ) |const| :ref:`🔗` Devuelve la primera línea visible. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_gutter_count: .. rst-class:: classref-method :ref:`int` **get_gutter_count**\ (\ ) |const| :ref:`🔗` Returns the number of gutters registered. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_gutter_name: .. rst-class:: classref-method :ref:`String` **get_gutter_name**\ (\ gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns the name of the gutter at the given index. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_gutter_type: .. rst-class:: classref-method :ref:`GutterType` **get_gutter_type**\ (\ gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns the type of the gutter at the given index. Gutters can contain icons, text, or custom visuals. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_gutter_width: .. rst-class:: classref-method :ref:`int` **get_gutter_width**\ (\ gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns the width of the gutter at the given index. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_h_scroll_bar: .. rst-class:: classref-method :ref:`HScrollBar` **get_h_scroll_bar**\ (\ ) |const| :ref:`🔗` Devuelve la :ref:`HScrollBar` utilizada por **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_indent_level: .. rst-class:: classref-method :ref:`int` **get_indent_level**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el nivel de sangría de la línea dada. Este es el número de espacios y tabulaciones al principio de la línea, teniendo en cuenta el tamaño de la tabulación (véase :ref:`get_tab_size()`). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_last_full_visible_line: .. rst-class:: classref-method :ref:`int` **get_last_full_visible_line**\ (\ ) |const| :ref:`🔗` Devuelve la última línea visible. Usa :ref:`get_last_full_visible_line_wrap_index()` para el índice de ajuste de línea. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_last_full_visible_line_wrap_index: .. rst-class:: classref-method :ref:`int` **get_last_full_visible_line_wrap_index**\ (\ ) |const| :ref:`🔗` Devuelve el último índice de ajuste de línea visible de la última línea visible. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_last_unhidden_line: .. rst-class:: classref-method :ref:`int` **get_last_unhidden_line**\ (\ ) |const| :ref:`🔗` Devuelve la última línea no oculta en todo el **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line: .. rst-class:: classref-method :ref:`String` **get_line**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el texto de una línea específica. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_background_color: .. rst-class:: classref-method :ref:`Color` **get_line_background_color**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el color de fondo personalizado de la línea dada. Si no se ha establecido ningún color, devuelve ``Color(0, 0, 0, 0)``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_column_at_pos: .. rst-class:: classref-method :ref:`Vector2i` **get_line_column_at_pos**\ (\ position\: :ref:`Vector2i`, clamp_line\: :ref:`bool` = true, clamp_column\: :ref:`bool` = true\ ) |const| :ref:`🔗` Devuelve la línea y la columna en la posición dada. En el vector devuelto, ``x`` es la columna y ``y`` es la línea. Si ``clamp_line`` es ``false`` y ``position`` está por debajo de la última línea, se devuelve ``Vector2i(-1, -1)``. Si ``clamp_column`` es ``false`` y ``position`` está fuera del rango de columnas de la línea, se devuelve ``Vector2i(-1, -1)``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_count: .. rst-class:: classref-method :ref:`int` **get_line_count**\ (\ ) |const| :ref:`🔗` Devuelve el número de líneas en el texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_gutter_icon: .. rst-class:: classref-method :ref:`Texture2D` **get_line_gutter_icon**\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns the icon currently in ``gutter`` at ``line``. This only works when the gutter type is :ref:`GUTTER_TYPE_ICON` (see :ref:`set_gutter_type()`). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_gutter_item_color: .. rst-class:: classref-method :ref:`Color` **get_line_gutter_item_color**\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el color actualmente en ``gutter`` en la ``line``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_gutter_metadata: .. rst-class:: classref-method :ref:`Variant` **get_line_gutter_metadata**\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve los metadatos actualmente en ``gutter`` en la ``line``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_gutter_text: .. rst-class:: classref-method :ref:`String` **get_line_gutter_text**\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el texto actualmente en ``gutter`` en la ``line``. Esto solo funciona cuando el tipo de canal es :ref:`GUTTER_TYPE_STRING` (ver :ref:`set_gutter_type()`). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_height: .. rst-class:: classref-method :ref:`int` **get_line_height**\ (\ ) |const| :ref:`🔗` Devuelve el valor máximo de la altura de línea entre todas las líneas. \ **Nota:** El valor devuelto está influenciado por :ref:`line_spacing` y :ref:`font_size`. Y no será menor que ``1``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_ranges_from_carets: .. rst-class:: classref-method :ref:`Array`\[:ref:`Vector2i`\] **get_line_ranges_from_carets**\ (\ only_selections\: :ref:`bool` = false, merge_adjacent\: :ref:`bool` = true\ ) |const| :ref:`🔗` Devuelve un :ref:`Array` de rangos de línea donde ``x`` es la primera línea y ``y`` es la última línea. Todas las líneas dentro de estos rangos tendrán un cursor sobre ellas o serán parte de una selección. Cada línea solo formará parte de un rango de línea, incluso si tiene múltiples cursores sobre ella. Si la columna final de una selección (:ref:`get_selection_to_column()`) está en la columna ``0``, esa línea no será incluida. Si una selección comienza en la línea después de que otra selección termina y ``merge_adjacent`` es ``true``, o si comienzan y terminan en la misma línea, un solo rango de línea incluirá ambas selecciones. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_width: .. rst-class:: classref-method :ref:`int` **get_line_width**\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = -1\ ) |const| :ref:`🔗` Devuelve el ancho en píxeles del ``wrap_index`` en la ``line``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_with_ime: .. rst-class:: classref-method :ref:`String` **get_line_with_ime**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el texto de la línea tal como se muestra actualmente, incluida la string de composición IME. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_wrap_count: .. rst-class:: classref-method :ref:`int` **get_line_wrap_count**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el número de veces que la línea dada ha sido ajustada. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_wrap_index_at_column: .. rst-class:: classref-method :ref:`int` **get_line_wrap_index_at_column**\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el índice de envoltura de la columna dada en la línea dada. Este va desde ``0`` hasta :ref:`get_line_wrap_count()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_line_wrapped_text: .. rst-class:: classref-method :ref:`PackedStringArray` **get_line_wrapped_text**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Returns an array of :ref:`String`\ s representing each wrapped index. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_local_mouse_pos: .. rst-class:: classref-method :ref:`Vector2` **get_local_mouse_pos**\ (\ ) |const| :ref:`🔗` Devuelve la posición local del ratón ajustada a la dirección del texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_menu: .. rst-class:: classref-method :ref:`PopupMenu` **get_menu**\ (\ ) |const| :ref:`🔗` Returns the :ref:`PopupMenu` of this **TextEdit**. By default, this menu is displayed when right-clicking on the **TextEdit**. You can add custom menu items or remove standard ones. Make sure your IDs don't conflict with the standard ones (see :ref:`MenuItems`). For example: .. tabs:: .. code-tab:: gdscript func _ready(): var menu = get_menu() # Remove all items after "Redo". menu.item_count = menu.get_item_index(MENU_REDO) + 1 # Add custom items. menu.add_separator() menu.add_item("Insert Date", MENU_MAX + 1) # Connect callback. menu.id_pressed.connect(_on_item_pressed) func _on_item_pressed(id): if id == MENU_MAX + 1: insert_text_at_caret(Time.get_date_string_from_system()) .. code-tab:: csharp public override void _Ready() { var menu = GetMenu(); // Remove all items after "Redo". menu.ItemCount = menu.GetItemIndex(TextEdit.MenuItems.Redo) + 1; // Add custom items. menu.AddSeparator(); menu.AddItem("Insert Date", TextEdit.MenuItems.Max + 1); // Add event handler. menu.IdPressed += OnItemPressed; } public void OnItemPressed(int id) { if (id == TextEdit.MenuItems.Max + 1) { InsertTextAtCaret(Time.GetDateStringFromSystem()); } } \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`Window.visible` property. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_minimap_line_at_pos: .. rst-class:: classref-method :ref:`int` **get_minimap_line_at_pos**\ (\ position\: :ref:`Vector2i`\ ) |const| :ref:`🔗` Devuelve la línea equivalente del minimapa en la ``position``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_minimap_visible_lines: .. rst-class:: classref-method :ref:`int` **get_minimap_visible_lines**\ (\ ) |const| :ref:`🔗` Devuelve el número de líneas que se pueden dibujar en el minimapa. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_next_composite_character_column: .. rst-class:: classref-method :ref:`int` **get_next_composite_character_column**\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve la columna correcta al final de un carácter compuesto como ❤️‍🩹 (corazón vendado; Unicode: ``U+2764 U+FE0F U+200D U+1FA79``) que está compuesto por más de un punto de código Unicode, si el cursor está al inicio del carácter compuesto. También devuelve la columna correcta con el cursor en medio de un grafema y para caracteres no compuestos. \ **Nota:** Para comprobar en la ubicación del cursor usa ``get_next_composite_character_column(get_caret_line(), get_caret_column())`` .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_next_visible_line_index_offset_from: .. rst-class:: classref-method :ref:`Vector2i` **get_next_visible_line_index_offset_from**\ (\ line\: :ref:`int`, wrap_index\: :ref:`int`, visible_amount\: :ref:`int`\ ) |const| :ref:`🔗` Similar a :ref:`get_next_visible_line_offset_from()`, pero tiene en cuenta los índices de envoltura de línea. En el vector devuelto, ``x`` es la línea, e ``y`` es el índice de envoltura. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_next_visible_line_offset_from: .. rst-class:: classref-method :ref:`int` **get_next_visible_line_offset_from**\ (\ line\: :ref:`int`, visible_amount\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el recuento hasta la siguiente línea visible desde ``line`` hasta ``line + visible_amount``. También puede contar hacia atrás. Por ejemplo, si un **TextEdit** tiene 5 líneas con las líneas 2 y 3 ocultas, llamar a esto con ``line = 1, visible_amount = 1`` devolvería 3. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_pos_at_line_column: .. rst-class:: classref-method :ref:`Vector2i` **get_pos_at_line_column**\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve la posición local para la ``line`` (línea) y ``column`` (columna) dadas. Si ``x`` o ``y`` del vector devuelto son iguales a ``-1``, la posición está fuera del área visible del control. \ **Nota:** La posición Y corresponde a la parte inferior de la línea. Usa :ref:`get_rect_at_line_column()` para obtener la posición de la parte superior. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_previous_composite_character_column: .. rst-class:: classref-method :ref:`int` **get_previous_composite_character_column**\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve la columna correcta al inicio de un carácter compuesto como ❤️‍🩹 (corazón vendado; Unicode: ``U+2764 U+FE0F U+200D U+1FA79``) que se compone de más de un punto de código Unicode, si el cursor está al final del carácter compuesto. También devuelve la columna correcta con el cursor en medio de un grafema y para caracteres no compuestos. \ **Nota:** Para comprobar la ubicación del cursor, utiliza ``get_previous_composite_character_column(get_caret_line(), get_caret_column())`` .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_rect_at_line_column: .. rst-class:: classref-method :ref:`Rect2i` **get_rect_at_line_column**\ (\ line\: :ref:`int`, column\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve la posición y el tamaño local para el grafema en la ``line`` (línea) y ``column`` (columna) dadas. Si la posición ``x`` o ``y`` del rectángulo devuelto es igual a ``-1``, la posición está fuera del área visible del control. \ **Nota:** La posición Y del rectángulo devuelto corresponde a la parte superior de la línea, a diferencia de :ref:`get_pos_at_line_column()` que devuelve la parte inferior. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_saved_version: .. rst-class:: classref-method :ref:`int` **get_saved_version**\ (\ ) |const| :ref:`🔗` Devuelve la última versión guardada etiquetada de :ref:`tag_saved_version()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_scroll_pos_for_line: .. rst-class:: classref-method :ref:`float` **get_scroll_pos_for_line**\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la posición de desplazamiento para ``wrap_index`` de ``line``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selected_text: .. rst-class:: classref-method :ref:`String` **get_selected_text**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Devuelve el texto dentro de la selección de un cursor, o de todos los cursores si ``caret_index`` es su valor por defecto ``-1``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_at_line_column: .. rst-class:: classref-method :ref:`int` **get_selection_at_line_column**\ (\ line\: :ref:`int`, column\: :ref:`int`, include_edges\: :ref:`bool` = true, only_selections\: :ref:`bool` = true\ ) |const| :ref:`🔗` Devuelve el índice del cursor de la selección en la ``line`` y ``column`` dadas, o ``-1`` si no hay ninguna. Si ``include_edges`` es ``false``, la posición debe estar dentro de la selección y no en ninguno de los extremos. Si ``only_selections`` es ``false``, también se considerarán los cursores sin selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_column: .. rst-class:: classref-method :ref:`int` **get_selection_column**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` **Obsoleto:** Use :ref:`get_selection_origin_column()` instead. Devuelve la columna de inicio original de la selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_from_column: .. rst-class:: classref-method :ref:`int` **get_selection_from_column**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la columna de inicio de la selección. Devuelve la columna del cursor si no hay selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_from_line: .. rst-class:: classref-method :ref:`int` **get_selection_from_line**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la línea de inicio de la selección. Devuelve la línea del cursor si no hay selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_line: .. rst-class:: classref-method :ref:`int` **get_selection_line**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` **Obsoleto:** Use :ref:`get_selection_origin_line()` instead. Devuelve la línea de inicio original de la selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_mode: .. rst-class:: classref-method :ref:`SelectionMode` **get_selection_mode**\ (\ ) |const| :ref:`🔗` Devuelve el modo de selección actual. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_origin_column: .. rst-class:: classref-method :ref:`int` **get_selection_origin_column**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la columna de origen de la selección. Este es el extremo opuesto al cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_origin_line: .. rst-class:: classref-method :ref:`int` **get_selection_origin_line**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la línea de origen de la selección. Este es el extremo opuesto al cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_to_column: .. rst-class:: classref-method :ref:`int` **get_selection_to_column**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la columna final de la selección. Devuelve la columna del cursor si no hay selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_selection_to_line: .. rst-class:: classref-method :ref:`int` **get_selection_to_line**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve la línea final de la selección. Devuelve la línea del cursor si no hay selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_sorted_carets: .. rst-class:: classref-method :ref:`PackedInt32Array` **get_sorted_carets**\ (\ include_ignored_carets\: :ref:`bool` = false\ ) |const| :ref:`🔗` Devuelve los cursores ordenados por selección comenzando desde la línea y columna más bajas hasta las más altas (de arriba a abajo del texto). Si ``include_ignored_carets`` es ``false``, se ignorarán los cursores de :ref:`multicaret_edit_ignore_caret()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_tab_size: .. rst-class:: classref-method :ref:`int` **get_tab_size**\ (\ ) |const| :ref:`🔗` Devuelve el tamaño de la pestaña de **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_total_gutter_width: .. rst-class:: classref-method :ref:`int` **get_total_gutter_width**\ (\ ) |const| :ref:`🔗` Returns the total width of all gutters and internal padding. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_total_visible_line_count: .. rst-class:: classref-method :ref:`int` **get_total_visible_line_count**\ (\ ) |const| :ref:`🔗` Devuelve el número total de líneas en el texto. Esto incluye las líneas ajustadas y excluye las líneas plegadas. Si :ref:`wrap_mode` está establecido en :ref:`LINE_WRAPPING_NONE` y no hay líneas plegadas (ver :ref:`CodeEdit.is_line_folded()`), entonces es equivalente a :ref:`get_line_count()`. Véase :ref:`get_visible_line_count_in_range()` para un rango limitado de líneas. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_v_scroll_bar: .. rst-class:: classref-method :ref:`VScrollBar` **get_v_scroll_bar**\ (\ ) |const| :ref:`🔗` Devuelve la :ref:`VScrollBar` del **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_version: .. rst-class:: classref-method :ref:`int` **get_version**\ (\ ) |const| :ref:`🔗` Devuelve la versión actual del **TextEdit**. La versión es un recuento de las operaciones registradas por el historial de deshacer/rehacer. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_visible_line_count: .. rst-class:: classref-method :ref:`int` **get_visible_line_count**\ (\ ) |const| :ref:`🔗` Devuelve el número de líneas que pueden caber visualmente, redondeado hacia abajo, basándose en la altura de este control. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_visible_line_count_in_range: .. rst-class:: classref-method :ref:`int` **get_visible_line_count_in_range**\ (\ from_line\: :ref:`int`, to_line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve el número total de líneas entre ``from_line`` y ``to_line`` (inclusive) en el texto. Esto incluye las líneas ajustadas y excluye las líneas plegadas. Si el rango cubre todas las líneas, es equivalente a :ref:`get_total_visible_line_count()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_word_at_pos: .. rst-class:: classref-method :ref:`String` **get_word_at_pos**\ (\ position\: :ref:`Vector2`\ ) |const| :ref:`🔗` Devuelve la palabra en ``position``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_get_word_under_caret: .. rst-class:: classref-method :ref:`String` **get_word_under_caret**\ (\ caret_index\: :ref:`int` = -1\ ) |const| :ref:`🔗` Devuelve un :ref:`String` con la palabra debajo la ubicación del cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_has_ime_text: .. rst-class:: classref-method :ref:`bool` **has_ime_text**\ (\ ) |const| :ref:`🔗` Devuelve ``true`` si el usuario tiene texto en el `Editor de métodos de entrada `__ (IME). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_has_redo: .. rst-class:: classref-method :ref:`bool` **has_redo**\ (\ ) |const| :ref:`🔗` Devuelve ``true`` si una acción de "redo" está disponible. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_has_selection: .. rst-class:: classref-method :ref:`bool` **has_selection**\ (\ caret_index\: :ref:`int` = -1\ ) |const| :ref:`🔗` Devuelve ``true`` si el usuario ha seleccionado texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_has_undo: .. rst-class:: classref-method :ref:`bool` **has_undo**\ (\ ) |const| :ref:`🔗` Devuelve ``true`` si se dispone de una acción de "deshacer". .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_insert_line_at: .. rst-class:: classref-method |void| **insert_line_at**\ (\ line\: :ref:`int`, text\: :ref:`String`\ ) :ref:`🔗` Inserta una nueva línea con ``text`` en la ``line``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_insert_text: .. rst-class:: classref-method |void| **insert_text**\ (\ text\: :ref:`String`, line\: :ref:`int`, column\: :ref:`int`, before_selection_begin\: :ref:`bool` = true, before_selection_end\: :ref:`bool` = false\ ) :ref:`🔗` Inserta el ``text`` en la ``line`` y la ``column``. Si ``before_selection_begin`` es ``true``, los cursores y selecciones que comienzan en la ``line`` y la ``column`` se moverán al final del texto insertado, junto con todos los cursores posteriores. Si ``before_selection_end`` es ``true``, las selecciones que terminan en la ``line`` y la ``column`` se extenderán hasta el final del texto insertado. Estos parámetros se pueden usar para insertar texto dentro o fuera de las selecciones. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_insert_text_at_caret: .. rst-class:: classref-method |void| **insert_text_at_caret**\ (\ text\: :ref:`String`, caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Inserta el texto especificado en la posición del cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_caret_after_selection_origin: .. rst-class:: classref-method :ref:`bool` **is_caret_after_selection_origin**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve ``true`` si el cursor de la selección está después del origen de la selección. Esto se puede utilizar para determinar la dirección de la selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_caret_visible: .. rst-class:: classref-method :ref:`bool` **is_caret_visible**\ (\ caret_index\: :ref:`int` = 0\ ) |const| :ref:`🔗` Devuelve ``true`` si el cursor es visible, de lo contrario ``false``. Un cursor se considerará oculto si está fuera del área desplazable cuando el desplazamiento está activado. \ **Nota:** :ref:`is_caret_visible()` no tiene en cuenta que un cursor esté fuera de la pantalla si todavía está dentro del área desplazable. Devolverá ``true`` incluso si el cursor está fuera de la pantalla siempre que cumpla con las propias condiciones de **TextEdit** para ser visible. Esto incluye los usos de :ref:`scroll_fit_content_width` y :ref:`scroll_fit_content_height` que hacen que el **TextEdit** se expanda más allá de los límites de la ventana gráfica. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_dragging_cursor: .. rst-class:: classref-method :ref:`bool` **is_dragging_cursor**\ (\ ) |const| :ref:`🔗` Devuelve ``true`` si el usuario está arrastrando el ratón para desplazarse, seleccionar o arrastrar texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_gutter_clickable: .. rst-class:: classref-method :ref:`bool` **is_gutter_clickable**\ (\ gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns ``true`` if the gutter at the given index is clickable. See :ref:`set_gutter_clickable()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_gutter_drawn: .. rst-class:: classref-method :ref:`bool` **is_gutter_drawn**\ (\ gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns ``true`` if the gutter at the given index is currently drawn. See :ref:`set_gutter_draw()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_gutter_overwritable: .. rst-class:: classref-method :ref:`bool` **is_gutter_overwritable**\ (\ gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns ``true`` if the gutter at the given index is overwritable. See :ref:`set_gutter_overwritable()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_in_mulitcaret_edit: .. rst-class:: classref-method :ref:`bool` **is_in_mulitcaret_edit**\ (\ ) |const| :ref:`🔗` Devuelve ``true`` si se ha llamado a :ref:`begin_multicaret_edit()` y aún no se ha llamado a :ref:`end_multicaret_edit()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_line_gutter_clickable: .. rst-class:: classref-method :ref:`bool` **is_line_gutter_clickable**\ (\ line\: :ref:`int`, gutter\: :ref:`int`\ ) |const| :ref:`🔗` Returns ``true`` if the gutter at the given index on the given line is clickable. See :ref:`set_line_gutter_clickable()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_line_wrapped: .. rst-class:: classref-method :ref:`bool` **is_line_wrapped**\ (\ line\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve si la línea dada está ajustada. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_menu_visible: .. rst-class:: classref-method :ref:`bool` **is_menu_visible**\ (\ ) |const| :ref:`🔗` Devuelve ``true`` si el menú es visible. Usa esto en lugar de ``get_menu().visible`` para mejorar el rendimiento (así se evita la creación del menú). Véase :ref:`get_menu()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_mouse_over_selection: .. rst-class:: classref-method :ref:`bool` **is_mouse_over_selection**\ (\ edges\: :ref:`bool`, caret_index\: :ref:`int` = -1\ ) |const| :ref:`🔗` Devuelve ``true`` si el ratón está sobre una selección. Si ``edges`` es ``true``, los bordes se consideran parte de la selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_is_overtype_mode_enabled: .. rst-class:: classref-method :ref:`bool` **is_overtype_mode_enabled**\ (\ ) |const| :ref:`🔗` Devuelve ``true`` si el modo de sobrescritura está activado. Véase :ref:`set_overtype_mode_enabled()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_menu_option: .. rst-class:: classref-method |void| **menu_option**\ (\ option\: :ref:`int`\ ) :ref:`🔗` Ejecuta una acción determinada según se define en el enum :ref:`MenuItems`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_merge_gutters: .. rst-class:: classref-method |void| **merge_gutters**\ (\ from_line\: :ref:`int`, to_line\: :ref:`int`\ ) :ref:`🔗` Fusiona las canaletas de la línea ``from_line`` en la línea ``to_line``. Solo se copiarán las canaletas sobrescribibles. Véase :ref:`set_gutter_overwritable()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_merge_overlapping_carets: .. rst-class:: classref-method |void| **merge_overlapping_carets**\ (\ ) :ref:`🔗` Fusiona los cursores que se solapen. Se dará prioridad al cursor más nuevo o al cursor con una selección. Si :ref:`is_in_mulitcaret_edit()` es ``true``, la fusión se pondrá en cola para que se produzca al final de la edición multcursor. Véase :ref:`begin_multicaret_edit()` y :ref:`end_multicaret_edit()`. \ **Nota:** Esto no se llama cuando un cursor cambia de posición, sino después de ciertas acciones, por lo que es posible entrar en un estado en el que los cursores se solapan. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_multicaret_edit_ignore_caret: .. rst-class:: classref-method :ref:`bool` **multicaret_edit_ignore_caret**\ (\ caret_index\: :ref:`int`\ ) |const| :ref:`🔗` Devuelve ``true`` si el ``caret_index`` dado debe ser ignorado como parte de una edición multcursor. Véase :ref:`begin_multicaret_edit()` y :ref:`end_multicaret_edit()`. Los cursores que deben ser ignorados son aquellos que formaban parte de texto eliminado y que probablemente se fusionarán al final de la edición, o los cursores que se añadieron durante la edición. Se recomienda usar ``continue`` dentro de un bucle que itere sobre múltiples cursores si un cursor debe ser ignorado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_paste: .. rst-class:: classref-method |void| **paste**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Pega en la ubicación actual. Puede ser sobreescrito con :ref:`_paste()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_paste_primary_clipboard: .. rst-class:: classref-method |void| **paste_primary_clipboard**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Pega el portapapeles principal. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_redo: .. rst-class:: classref-method |void| **redo**\ (\ ) :ref:`🔗` Realiza la operación de rehacer. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_remove_caret: .. rst-class:: classref-method |void| **remove_caret**\ (\ caret\: :ref:`int`\ ) :ref:`🔗` Elimina el índice del cursor indicado. \ **Nota:** Esto puede provocar el ajuste de todos los demás índices de cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_remove_gutter: .. rst-class:: classref-method |void| **remove_gutter**\ (\ gutter\: :ref:`int`\ ) :ref:`🔗` Removes the gutter at the given index. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_remove_line_at: .. rst-class:: classref-method |void| **remove_line_at**\ (\ line\: :ref:`int`, move_carets_down\: :ref:`bool` = true\ ) :ref:`🔗` Elimina la línea de texto en ``line``. Los cursores en esta línea intentarán coincidir con su posición x visual anterior. Si ``move_carets_down`` es ``true``, los cursores se moverán a la siguiente línea hacia abajo, de lo contrario, los cursores se moverán hacia arriba. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_remove_secondary_carets: .. rst-class:: classref-method |void| **remove_secondary_carets**\ (\ ) :ref:`🔗` Elimina todos los cursores adicionales. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_remove_text: .. rst-class:: classref-method |void| **remove_text**\ (\ from_line\: :ref:`int`, from_column\: :ref:`int`, to_line\: :ref:`int`, to_column\: :ref:`int`\ ) :ref:`🔗` Elimina el texto entre las posiciones dadas. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_search: .. rst-class:: classref-method :ref:`Vector2i` **search**\ (\ text\: :ref:`String`, flags\: :ref:`int`, from_line\: :ref:`int`, from_column\: :ref:`int`\ ) |const| :ref:`🔗` Perform a search inside the text. Search flags can be specified in the :ref:`SearchFlags` enum. In the returned vector, ``x`` is the column, ``y`` is the line. If no results are found, both are equal to ``-1``. .. tabs:: .. code-tab:: gdscript var result = search("print", SEARCH_WHOLE_WORDS, 0, 0) if result.x != -1: # Result found. var line_number = result.y var column_number = result.x .. code-tab:: csharp Vector2I result = Search("print", (uint)TextEdit.SearchFlags.WholeWords, 0, 0); if (result.X != -1) { // Result found. int lineNumber = result.Y; int columnNumber = result.X; } .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_select: .. rst-class:: classref-method |void| **select**\ (\ origin_line\: :ref:`int`, origin_column\: :ref:`int`, caret_line\: :ref:`int`, caret_column\: :ref:`int`, caret_index\: :ref:`int` = 0\ ) :ref:`🔗` Selects text from ``origin_line`` and ``origin_column`` to ``caret_line`` and ``caret_column`` for the given ``caret_index``. This moves the selection origin and the caret. If the positions are the same, the selection will be deselected. If :ref:`selecting_enabled` is ``false``, no selection will occur. \ **Note:** If supporting multiple carets this will not check for any overlap. See :ref:`merge_overlapping_carets()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_select_all: .. rst-class:: classref-method |void| **select_all**\ (\ ) :ref:`🔗` Selecciona todo el texto. Si :ref:`selecting_enabled` es ``false``, no se producirá ninguna selección. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_select_word_under_caret: .. rst-class:: classref-method |void| **select_word_under_caret**\ (\ caret_index\: :ref:`int` = -1\ ) :ref:`🔗` Selecciona la palabra debajo del cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_caret_column: .. rst-class:: classref-method |void| **set_caret_column**\ (\ column\: :ref:`int`, adjust_viewport\: :ref:`bool` = true, caret_index\: :ref:`int` = 0\ ) :ref:`🔗` Moves the caret to the specified ``column`` index. If ``adjust_viewport`` is ``true``, the viewport will center at the caret position after the move occurs. \ **Note:** If supporting multiple carets this will not check for any overlap. See :ref:`merge_overlapping_carets()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_caret_line: .. rst-class:: classref-method |void| **set_caret_line**\ (\ line\: :ref:`int`, adjust_viewport\: :ref:`bool` = true, can_be_hidden\: :ref:`bool` = true, wrap_index\: :ref:`int` = 0, caret_index\: :ref:`int` = 0\ ) :ref:`🔗` Moves the caret to the specified ``line`` index. The caret column will be moved to the same visual position it was at the last time :ref:`set_caret_column()` was called, or clamped to the end of the line. If ``adjust_viewport`` is ``true``, the viewport will center at the caret position after the move occurs. If ``can_be_hidden`` is ``true``, the specified ``line`` can be hidden. If ``wrap_index`` is ``-1``, the caret column will be clamped to the ``line``'s length. If ``wrap_index`` is greater than ``-1``, the column will be moved to attempt to match the visual x position on the line's ``wrap_index`` to the position from the last time :ref:`set_caret_column()` was called. \ **Note:** If supporting multiple carets this will not check for any overlap. See :ref:`merge_overlapping_carets()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_gutter_clickable: .. rst-class:: classref-method |void| **set_gutter_clickable**\ (\ gutter\: :ref:`int`, clickable\: :ref:`bool`\ ) :ref:`🔗` If ``true``, the mouse cursor will change to a pointing hand (:ref:`Control.CURSOR_POINTING_HAND`) when hovering over the gutter at the given index. See :ref:`is_gutter_clickable()` and :ref:`set_line_gutter_clickable()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_gutter_custom_draw: .. rst-class:: classref-method |void| **set_gutter_custom_draw**\ (\ column\: :ref:`int`, draw_callback\: :ref:`Callable`\ ) :ref:`🔗` Set a custom draw callback for the gutter at the given index. ``draw_callback`` must take the following arguments: A line index :ref:`int`, a gutter index :ref:`int`, and an area :ref:`Rect2`. This callback only works when the gutter type is :ref:`GUTTER_TYPE_CUSTOM` (see :ref:`set_gutter_type()`). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_gutter_draw: .. rst-class:: classref-method |void| **set_gutter_draw**\ (\ gutter\: :ref:`int`, draw\: :ref:`bool`\ ) :ref:`🔗` If ``true``, the gutter at the given index is drawn. The gutter type (:ref:`set_gutter_type()`) determines how it is drawn. See :ref:`is_gutter_drawn()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_gutter_name: .. rst-class:: classref-method |void| **set_gutter_name**\ (\ gutter\: :ref:`int`, name\: :ref:`String`\ ) :ref:`🔗` Sets the name of the gutter at the given index. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_gutter_overwritable: .. rst-class:: classref-method |void| **set_gutter_overwritable**\ (\ gutter\: :ref:`int`, overwritable\: :ref:`bool`\ ) :ref:`🔗` If ``true``, the line data of the gutter at the given index can be overridden when using :ref:`merge_gutters()`. See :ref:`is_gutter_overwritable()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_gutter_type: .. rst-class:: classref-method |void| **set_gutter_type**\ (\ gutter\: :ref:`int`, type\: :ref:`GutterType`\ ) :ref:`🔗` Sets the type of gutter at the given index. Gutters can contain icons, text, or custom visuals. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_gutter_width: .. rst-class:: classref-method |void| **set_gutter_width**\ (\ gutter\: :ref:`int`, width\: :ref:`int`\ ) :ref:`🔗` Set the width of the gutter at the given index. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line: .. rst-class:: classref-method |void| **set_line**\ (\ line\: :ref:`int`, new_text\: :ref:`String`\ ) :ref:`🔗` Sets the text for a specific ``line``. Carets on the line will attempt to keep their visual x position. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_as_center_visible: .. rst-class:: classref-method |void| **set_line_as_center_visible**\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) :ref:`🔗` Positions the ``wrap_index`` of ``line`` at the center of the viewport. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_as_first_visible: .. rst-class:: classref-method |void| **set_line_as_first_visible**\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) :ref:`🔗` Positions the ``wrap_index`` of ``line`` at the top of the viewport. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_as_last_visible: .. rst-class:: classref-method |void| **set_line_as_last_visible**\ (\ line\: :ref:`int`, wrap_index\: :ref:`int` = 0\ ) :ref:`🔗` Positions the ``wrap_index`` of ``line`` at the bottom of the viewport. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_background_color: .. rst-class:: classref-method |void| **set_line_background_color**\ (\ line\: :ref:`int`, color\: :ref:`Color`\ ) :ref:`🔗` Sets the custom background color of the given line. If transparent, this color is applied on top of the default background color (See :ref:`background_color`). If set to ``Color(0, 0, 0, 0)``, no additional color is applied. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_gutter_clickable: .. rst-class:: classref-method |void| **set_line_gutter_clickable**\ (\ line\: :ref:`int`, gutter\: :ref:`int`, clickable\: :ref:`bool`\ ) :ref:`🔗` If ``clickable`` is ``true``, makes the ``gutter`` on the given ``line`` clickable. This is like :ref:`set_gutter_clickable()`, but for a single line. If :ref:`is_gutter_clickable()` is ``true``, this will not have any effect. See :ref:`is_line_gutter_clickable()` and :ref:`gutter_clicked`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_gutter_icon: .. rst-class:: classref-method |void| **set_line_gutter_icon**\ (\ line\: :ref:`int`, gutter\: :ref:`int`, icon\: :ref:`Texture2D`\ ) :ref:`🔗` Sets the icon for ``gutter`` on ``line`` to ``icon``. This only works when the gutter type is :ref:`GUTTER_TYPE_ICON` (see :ref:`set_gutter_type()`). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_gutter_item_color: .. rst-class:: classref-method |void| **set_line_gutter_item_color**\ (\ line\: :ref:`int`, gutter\: :ref:`int`, color\: :ref:`Color`\ ) :ref:`🔗` Sets the color for ``gutter`` on ``line`` to ``color``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_gutter_metadata: .. rst-class:: classref-method |void| **set_line_gutter_metadata**\ (\ line\: :ref:`int`, gutter\: :ref:`int`, metadata\: :ref:`Variant`\ ) :ref:`🔗` Sets the metadata for ``gutter`` on ``line`` to ``metadata``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_line_gutter_text: .. rst-class:: classref-method |void| **set_line_gutter_text**\ (\ line\: :ref:`int`, gutter\: :ref:`int`, text\: :ref:`String`\ ) :ref:`🔗` Sets the text for ``gutter`` on ``line`` to ``text``. This only works when the gutter type is :ref:`GUTTER_TYPE_STRING` (see :ref:`set_gutter_type()`). .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_overtype_mode_enabled: .. rst-class:: classref-method |void| **set_overtype_mode_enabled**\ (\ enabled\: :ref:`bool`\ ) :ref:`🔗` If ``true``, enables overtype mode. In this mode, typing overrides existing text instead of inserting text. The :ref:`ProjectSettings.input/ui_text_toggle_insert_mode` action toggles overtype mode. See :ref:`is_overtype_mode_enabled()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_search_flags: .. rst-class:: classref-method |void| **set_search_flags**\ (\ flags\: :ref:`int`\ ) :ref:`🔗` Sets the search ``flags``. This is used with :ref:`set_search_text()` to highlight occurrences of the searched text. Search flags can be specified from the :ref:`SearchFlags` enum. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_search_text: .. rst-class:: classref-method |void| **set_search_text**\ (\ search_text\: :ref:`String`\ ) :ref:`🔗` Sets the search text. See :ref:`set_search_flags()`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_selection_mode: .. rst-class:: classref-method |void| **set_selection_mode**\ (\ mode\: :ref:`SelectionMode`\ ) :ref:`🔗` Sets the current selection mode. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_selection_origin_column: .. rst-class:: classref-method |void| **set_selection_origin_column**\ (\ column\: :ref:`int`, caret_index\: :ref:`int` = 0\ ) :ref:`🔗` Sets the selection origin column to the ``column`` for the given ``caret_index``. If the selection origin is moved to the caret position, the selection will deselect. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_selection_origin_line: .. rst-class:: classref-method |void| **set_selection_origin_line**\ (\ line\: :ref:`int`, can_be_hidden\: :ref:`bool` = true, wrap_index\: :ref:`int` = -1, caret_index\: :ref:`int` = 0\ ) :ref:`🔗` Sets the selection origin line to the ``line`` for the given ``caret_index``. If the selection origin is moved to the caret position, the selection will deselect. If ``can_be_hidden`` is ``false``, The line will be set to the nearest unhidden line below or above. If ``wrap_index`` is ``-1``, the selection origin column will be clamped to the ``line``'s length. If ``wrap_index`` is greater than ``-1``, the column will be moved to attempt to match the visual x position on the line's ``wrap_index`` to the position from the last time :ref:`set_selection_origin_column()` or :ref:`select()` was called. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_tab_size: .. rst-class:: classref-method |void| **set_tab_size**\ (\ size\: :ref:`int`\ ) :ref:`🔗` Sets the tab size for the **TextEdit** to use. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_set_tooltip_request_func: .. rst-class:: classref-method |void| **set_tooltip_request_func**\ (\ callback\: :ref:`Callable`\ ) :ref:`🔗` Provide custom tooltip text. The callback method must take the following args: ``hovered_word: String``. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_skip_selection_for_next_occurrence: .. rst-class:: classref-method |void| **skip_selection_for_next_occurrence**\ (\ ) :ref:`🔗` Moves a selection and a caret for the next occurrence of the current selection. If there is no active selection, moves to the next occurrence of the word under caret. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_start_action: .. rst-class:: classref-method |void| **start_action**\ (\ action\: :ref:`EditAction`\ ) :ref:`🔗` Starts an action, will end the current action if ``action`` is different. An action will also end after a call to :ref:`end_action()`, after :ref:`ProjectSettings.gui/timers/text_edit_idle_detect_sec` is triggered or a new undoable step outside the :ref:`start_action()` and :ref:`end_action()` calls. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_swap_lines: .. rst-class:: classref-method |void| **swap_lines**\ (\ from_line\: :ref:`int`, to_line\: :ref:`int`\ ) :ref:`🔗` Intercambia las dos líneas. Los cursores se intercambiarán con las líneas. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_tag_saved_version: .. rst-class:: classref-method |void| **tag_saved_version**\ (\ ) :ref:`🔗` Tag the current version as saved. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_method_undo: .. rst-class:: classref-method |void| **undo**\ (\ ) :ref:`🔗` Realiza la operación de deshacer. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Descripciones de las propiedades del tema ---------------------------------------------------------------------------------- .. _class_TextEdit_theme_color_background_color: .. rst-class:: classref-themeproperty :ref:`Color` **background_color** = ``Color(0, 0, 0, 0)`` :ref:`🔗` Establece el :ref:`Color` del fondo de este **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_caret_background_color: .. rst-class:: classref-themeproperty :ref:`Color` **caret_background_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗` El :ref:`Color` del texto detrás del cursor cuando se utiliza un cursor de bloque. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_caret_color: .. rst-class:: classref-themeproperty :ref:`Color` **caret_color** = ``Color(0.875, 0.875, 0.875, 1)`` :ref:`🔗` El :ref:`Color` del cursor. Se puede configurar en un color totalmente transparente para ocultarlo por completo. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_current_line_color: .. rst-class:: classref-themeproperty :ref:`Color` **current_line_color** = ``Color(0.25, 0.25, 0.26, 0.8)`` :ref:`🔗` El :ref:`Color` del fondo de la línea que contiene el cursor. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_font_color: .. rst-class:: classref-themeproperty :ref:`Color` **font_color** = ``Color(0.875, 0.875, 0.875, 1)`` :ref:`🔗` Establece la fuente :ref:`Color`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_font_outline_color: .. rst-class:: classref-themeproperty :ref:`Color` **font_outline_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗` El tono del contorno del texto de **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_font_placeholder_color: .. rst-class:: classref-themeproperty :ref:`Color` **font_placeholder_color** = ``Color(0.875, 0.875, 0.875, 0.6)`` :ref:`🔗` Color de fuente para :ref:`placeholder_text`. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_font_readonly_color: .. rst-class:: classref-themeproperty :ref:`Color` **font_readonly_color** = ``Color(0.875, 0.875, 0.875, 0.5)`` :ref:`🔗` Establece el :ref:`Color` de la fuente cuando :ref:`editable` está deshabilitado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_font_selected_color: .. rst-class:: classref-themeproperty :ref:`Color` **font_selected_color** = ``Color(0, 0, 0, 0)`` :ref:`🔗` Sets the :ref:`Color` of the selected text. If equal to ``Color(0, 0, 0, 0)``, it will be ignored. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_search_result_border_color: .. rst-class:: classref-themeproperty :ref:`Color` **search_result_border_color** = ``Color(0.3, 0.3, 0.3, 0.4)`` :ref:`🔗` :ref:`Color` del borde alrededor del texto que coincide con la consulta de búsqueda. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_search_result_color: .. rst-class:: classref-themeproperty :ref:`Color` **search_result_color** = ``Color(0.3, 0.3, 0.3, 1)`` :ref:`🔗` :ref:`Color` detrás del texto que coincide con la consulta de búsqueda. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_selection_color: .. rst-class:: classref-themeproperty :ref:`Color` **selection_color** = ``Color(0.5, 0.5, 0.5, 1)`` :ref:`🔗` Establece el resaltado :ref:`Color` de las selecciones de texto. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_color_word_highlighted_color: .. rst-class:: classref-themeproperty :ref:`Color` **word_highlighted_color** = ``Color(0.5, 0.5, 0.5, 0.25)`` :ref:`🔗` Establece el resaltado :ref:`Color` de múltiples ocurrencias. :ref:`highlight_all_occurrences` tiene que ser activado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_constant_caret_width: .. rst-class:: classref-themeproperty :ref:`int` **caret_width** = ``1`` :ref:`🔗` El ancho del cursor en píxeles. Se pueden usar valores mayores para mejorar la accesibilidad, asegurando que el cursor sea fácilmente visible, o para asegurar la consistencia con un tamaño de fuente grande. Si se establece en ``0`` o menos, el ancho del cursor se establece automáticamente en 1 píxel y se multiplica por el factor de escala de la pantalla. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_constant_line_spacing: .. rst-class:: classref-themeproperty :ref:`int` **line_spacing** = ``4`` :ref:`🔗` Additional vertical spacing between lines (in pixels), spacing is added to line descent. This value can be negative. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_constant_outline_size: .. rst-class:: classref-themeproperty :ref:`int` **outline_size** = ``0`` :ref:`🔗` The size of the text outline. \ **Note:** If using a font with :ref:`FontFile.multichannel_signed_distance_field` enabled, its :ref:`FontFile.msdf_pixel_range` must be set to at least *twice* the value of :ref:`outline_size` for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_constant_wrap_offset: .. rst-class:: classref-themeproperty :ref:`int` **wrap_offset** = ``10`` :ref:`🔗` Sets an additional margin for line wrapping width. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_font_font: .. rst-class:: classref-themeproperty :ref:`Font` **font** :ref:`🔗` Establece la :ref:`Font` predeterminada. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_font_size_font_size: .. rst-class:: classref-themeproperty :ref:`int` **font_size** :ref:`🔗` Establece el tamaño de fuente predeterminado. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_icon_space: .. rst-class:: classref-themeproperty :ref:`Texture2D` **space** :ref:`🔗` Establece una :ref:`Texture2D` personalizada para los caracteres de espacio. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_icon_tab: .. rst-class:: classref-themeproperty :ref:`Texture2D` **tab** :ref:`🔗` Establece una :ref:`Texture2D` personalizada para los caracteres de tabulación. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_style_focus: .. rst-class:: classref-themeproperty :ref:`StyleBox` **focus** :ref:`🔗` Establece el :ref:`StyleBox` cuando está en foco. El :ref:`focus` :ref:`StyleBox` se muestra *sobre* el :ref:`StyleBox` base, por lo que se debe utilizar un :ref:`StyleBox` parcialmente transparente para garantizar que el :ref:`StyleBox` base permanezca visible. Un :ref:`StyleBox` que representa un contorno o un subrayado funciona bien para este propósito. Para deshabilitar el efecto visual de enfoque, asigna un recurso :ref:`StyleBoxEmpty`. Ten en cuenta que deshabilitar el efecto visual de enfoque perjudicará la usabilidad de la navegación con el teclado/mando, por lo que no se recomienda por razones de accesibilidad. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_style_normal: .. rst-class:: classref-themeproperty :ref:`StyleBox` **normal** :ref:`🔗` Establece el :ref:`StyleBox` de este **TextEdit**. .. rst-class:: classref-item-separator ---- .. _class_TextEdit_theme_style_read_only: .. rst-class:: classref-themeproperty :ref:`StyleBox` **read_only** :ref:`🔗` Establece el :ref:`StyleBox` de este **TextEdit** cuando :ref:`editable` está deshabilitado. .. |virtual| replace:: :abbr:`virtual (Normalmente, este método debería ser sobreescrito por el usuario para que tenga algún efecto.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (Este método no tiene efectos secundarios. No modifica ninguna de las variables miembro de la instancia.)` .. |vararg| replace:: :abbr:`vararg (Este método permite agregar cualquier número de argumentos después de los descritos aquí.)` .. |constructor| replace:: :abbr:`constructor (Este método se utiliza para construir un tipo.)` .. |static| replace:: :abbr:`static (Este método no necesita una instancia para ser llamado, por lo que puede llamarse directamente utilizando el nombre de la clase.)` .. |operator| replace:: :abbr:`operator (Este método describe un operador válido para usar con este tipo como operando izquierdo.)` .. |bitfield| replace:: :abbr:`BitField (Este valor es un entero compuesto como una máscara de bits de las siguientes banderas.)` .. |void| replace:: :abbr:`void (Sin valor de retorno.)`