summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
diff options
context:
space:
mode:
authorPucklaMotzer09 <jonaas.pucher000000@gmail.com>2022-10-09 17:07:42 +0200
committerPucklaMotzer09 <jonaas.pucher000000@gmail.com>2022-10-18 10:38:53 +0200
commite5354cacd0e85dc8c054179b40fecc2d7d24a8fd (patch)
tree73fb313a2571724e58717522369c18427d8c0105 /scene/gui/text_edit.h
parent39534a7aecc4ca4215af67244b23dda09ea339f8 (diff)
Add Caret Insert Below and Above shortcuts to TextEdit
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r--scene/gui/text_edit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index e4af621b73..b2e9a39457 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -598,6 +598,9 @@ private:
void _move_caret_document_start(bool p_select);
void _move_caret_document_end(bool p_select);
+ // Used in add_caret_at_carets
+ void _get_above_below_caret_line_column(int p_old_line, int p_old_wrap_index, int p_old_column, bool p_below, int &p_new_line, int &p_new_column, int p_last_fit_x = -1) const;
+
protected:
void _notification(int p_what);
@@ -816,6 +819,7 @@ public:
void remove_secondary_carets();
void merge_overlapping_carets();
int get_caret_count() const;
+ void add_caret_at_carets(bool p_below);
Vector<int> get_caret_index_edit_order();
void adjust_carets_after_edit(int p_caret, int p_from_line, int p_from_col, int p_to_line, int p_to_col);