diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-04-02 20:25:24 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-04-02 20:25:24 +0200 |
commit | 48f057ea816f4ae4b917cb110e399fcbfb4234a0 (patch) | |
tree | 5c692e6561e137cf199af9fc61b6bcce5ff56d0a /scene/gui/text_edit.h | |
parent | 35865139e1a7934723c50950bfd1e2f7d7abfc18 (diff) | |
parent | 2b57cb94da8bfad1f32a89437f4978301da92e10 (diff) |
Merge pull request #4193 from Paulb23/text_edit_insert_mode
Added insert mode to text editor
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index e7e6760379..a268cca90f 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -220,6 +220,7 @@ class TextEdit : public Control { bool brace_matching_enabled; bool auto_indent; bool cut_copy_line; + bool insert_mode; uint64_t last_dblclk; @@ -389,6 +390,9 @@ public: void set_draw_tabs(bool p_draw); bool is_drawing_tabs() const; + void set_insert_mode(bool p_enabled); + bool is_insert_mode() const; + void add_keyword_color(const String& p_keyword,const Color& p_color); void add_color_region(const String& p_begin_key=String(),const String& p_end_key=String(),const Color &p_color=Color(),bool p_line_only=false); void set_symbol_color(const Color& p_color); |