diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-12-17 01:53:34 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-12-17 01:53:34 -0300 |
commit | c8b2a5f64a44484b566bc1e2aa12aa36850f107e (patch) | |
tree | 2b4940b67aa018161e5d55887a3334c696752d24 /scene/gui/text_edit.h | |
parent | fd4648c081afa565cb20c923c4e3c94d88e71e4f (diff) |
-added brace matching to go with the new code completion
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index 120d5db54e..ed4d30a9d2 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -79,6 +79,7 @@ class TextEdit : public Control { Color mark_color; Color breakpoint_color; Color current_line_color; + Color brace_mismatch_color; int row_height; int line_spacing; @@ -210,6 +211,7 @@ class TextEdit : public Control { bool line_numbers; bool auto_brace_completion_enabled; + bool brace_matching_enabled; bool cut_copy_line; uint64_t last_dblclk; @@ -316,7 +318,11 @@ public: inline void set_auto_brace_completion(bool p_enabled) { auto_brace_completion_enabled = p_enabled; } - + inline void set_brace_matching(bool p_enabled) { + brace_matching_enabled=p_enabled; + update(); + } + void cursor_set_column(int p_col); void cursor_set_line(int p_row); |