|
@@ -23,71 +23,73 @@ TextEdit is meant for editing large, multiline text. It also has facilities for
|
|
|
Properties
|
|
|
----------
|
|
|
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`bookmark_gutter<class_TextEdit_property_bookmark_gutter>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`breakpoint_gutter<class_TextEdit_property_breakpoint_gutter>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`caret_blink<class_TextEdit_property_caret_blink>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`caret_blink_speed<class_TextEdit_property_caret_blink_speed>` | ``0.65`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`caret_block_mode<class_TextEdit_property_caret_block_mode>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`caret_moving_by_right_click<class_TextEdit_property_caret_moving_by_right_click>` | ``true`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`context_menu_enabled<class_TextEdit_property_context_menu_enabled>` | ``true`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`deselect_on_focus_loss_enabled<class_TextEdit_property_deselect_on_focus_loss_enabled>` | ``true`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`draw_spaces<class_TextEdit_property_draw_spaces>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`draw_tabs<class_TextEdit_property_draw_tabs>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``2`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`fold_gutter<class_TextEdit_property_fold_gutter>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`hiding_enabled<class_TextEdit_property_hiding_enabled>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`highlight_all_occurrences<class_TextEdit_property_highlight_all_occurrences>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`highlight_current_line<class_TextEdit_property_highlight_current_line>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`middle_mouse_paste_enabled<class_TextEdit_property_middle_mouse_paste_enabled>` | ``true`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`minimap_draw<class_TextEdit_property_minimap_draw>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`minimap_width<class_TextEdit_property_minimap_width>` | ``80`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`CursorShape<enum_Control_CursorShape>` | mouse_default_cursor_shape | ``1`` (overrides :ref:`Control<class_Control_property_mouse_default_cursor_shape>`) |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`override_selected_font_color<class_TextEdit_property_override_selected_font_color>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`readonly<class_TextEdit_property_readonly>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`int<class_int>` | :ref:`scroll_horizontal<class_TextEdit_property_scroll_horizontal>` | ``0`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`scroll_vertical<class_TextEdit_property_scroll_vertical>` | ``0.0`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`selecting_enabled<class_TextEdit_property_selecting_enabled>` | ``true`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`shortcut_keys_enabled<class_TextEdit_property_shortcut_keys_enabled>` | ``true`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`show_line_numbers<class_TextEdit_property_show_line_numbers>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`smooth_scrolling<class_TextEdit_property_smooth_scrolling>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`syntax_highlighting<class_TextEdit_property_syntax_highlighting>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`String<class_String>` | :ref:`text<class_TextEdit_property_text>` | ``""`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`float<class_float>` | :ref:`v_scroll_speed<class_TextEdit_property_v_scroll_speed>` | ``80.0`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`virtual_keyboard_enabled<class_TextEdit_property_virtual_keyboard_enabled>` | ``true`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
-| :ref:`bool<class_bool>` | :ref:`wrap_enabled<class_TextEdit_property_wrap_enabled>` | ``false`` |
|
|
|
-+----------------------------------------------+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`bookmark_gutter<class_TextEdit_property_bookmark_gutter>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`breakpoint_gutter<class_TextEdit_property_breakpoint_gutter>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`caret_blink<class_TextEdit_property_caret_blink>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`caret_blink_speed<class_TextEdit_property_caret_blink_speed>` | ``0.65`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`caret_block_mode<class_TextEdit_property_caret_block_mode>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`caret_moving_by_right_click<class_TextEdit_property_caret_moving_by_right_click>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`context_menu_enabled<class_TextEdit_property_context_menu_enabled>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`deselect_on_focus_loss_enabled<class_TextEdit_property_deselect_on_focus_loss_enabled>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`drag_and_drop_selection_enabled<class_TextEdit_property_drag_and_drop_selection_enabled>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`draw_spaces<class_TextEdit_property_draw_spaces>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`draw_tabs<class_TextEdit_property_draw_tabs>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``2`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`fold_gutter<class_TextEdit_property_fold_gutter>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`hiding_enabled<class_TextEdit_property_hiding_enabled>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`highlight_all_occurrences<class_TextEdit_property_highlight_all_occurrences>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`highlight_current_line<class_TextEdit_property_highlight_current_line>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`middle_mouse_paste_enabled<class_TextEdit_property_middle_mouse_paste_enabled>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`minimap_draw<class_TextEdit_property_minimap_draw>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`minimap_width<class_TextEdit_property_minimap_width>` | ``80`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`CursorShape<enum_Control_CursorShape>` | mouse_default_cursor_shape | ``1`` (overrides :ref:`Control<class_Control_property_mouse_default_cursor_shape>`) |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`override_selected_font_color<class_TextEdit_property_override_selected_font_color>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`readonly<class_TextEdit_property_readonly>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`int<class_int>` | :ref:`scroll_horizontal<class_TextEdit_property_scroll_horizontal>` | ``0`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`scroll_vertical<class_TextEdit_property_scroll_vertical>` | ``0.0`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`selecting_enabled<class_TextEdit_property_selecting_enabled>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`shortcut_keys_enabled<class_TextEdit_property_shortcut_keys_enabled>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`show_line_numbers<class_TextEdit_property_show_line_numbers>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`smooth_scrolling<class_TextEdit_property_smooth_scrolling>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`syntax_highlighting<class_TextEdit_property_syntax_highlighting>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`String<class_String>` | :ref:`text<class_TextEdit_property_text>` | ``""`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`float<class_float>` | :ref:`v_scroll_speed<class_TextEdit_property_v_scroll_speed>` | ``80.0`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`virtual_keyboard_enabled<class_TextEdit_property_virtual_keyboard_enabled>` | ``true`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
+| :ref:`bool<class_bool>` | :ref:`wrap_enabled<class_TextEdit_property_wrap_enabled>` | ``false`` |
|
|
|
++----------------------------------------------+-------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
|
|
|
Methods
|
|
|
-------
|
|
@@ -556,6 +558,22 @@ If ``true``, the selected text will be deselected when focus is lost.
|
|
|
|
|
|
----
|
|
|
|
|
|
+.. _class_TextEdit_property_drag_and_drop_selection_enabled:
|
|
|
+
|
|
|
+- :ref:`bool<class_bool>` **drag_and_drop_selection_enabled**
|
|
|
+
|
|
|
++-----------+--------------------------------------------+
|
|
|
+| *Default* | ``true`` |
|
|
|
++-----------+--------------------------------------------+
|
|
|
+| *Setter* | set_drag_and_drop_selection_enabled(value) |
|
|
|
++-----------+--------------------------------------------+
|
|
|
+| *Getter* | is_drag_and_drop_selection_enabled() |
|
|
|
++-----------+--------------------------------------------+
|
|
|
+
|
|
|
+If ``true``, allow drag and drop of selected text.
|
|
|
+
|
|
|
+----
|
|
|
+
|
|
|
.. _class_TextEdit_property_draw_spaces:
|
|
|
|
|
|
- :ref:`bool<class_bool>` **draw_spaces**
|
|
@@ -1391,7 +1409,7 @@ Sets the text for a specific line.
|
|
|
|
|
|
- void **set_line_as_bookmark** **(** :ref:`int<class_int>` line, :ref:`bool<class_bool>` bookmark **)**
|
|
|
|
|
|
-Bookmarks the ``line`` if ``bookmark`` is true. Deletes the bookmark if ``bookmark`` is false.
|
|
|
+Bookmarks the ``line`` if ``bookmark`` is ``true``. Deletes the bookmark if ``bookmark`` is ``false``.
|
|
|
|
|
|
Bookmarks are shown in the :ref:`breakpoint_gutter<class_TextEdit_property_breakpoint_gutter>`.
|
|
|
|