diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2019-05-17 20:38:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-17 20:38:40 +0200 |
commit | ee5ba3e0974caba3e3589d2a53405ef7328dc1b1 (patch) | |
tree | f766d1b13f6ebf180bd09f5c720b0a1bff287399 /scene/gui/text_edit.h | |
parent | 580b0c651df86675145a696b1e961b224bf3ad8c (diff) | |
parent | c86b03abd8860c5963f1e694257a2231cea96d85 (diff) |
Merge pull request #28366 from iwek7/feature/issue28355/showSpacesInEditor
Add feature to show spaces in code 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 4badd85e07..eb9fb2cf57 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -163,6 +163,7 @@ private: struct Cache { Ref<Texture> tab_icon; + Ref<Texture> space_icon; Ref<Texture> can_fold_icon; Ref<Texture> folded_icon; Ref<Texture> folded_eol_icon; @@ -290,6 +291,7 @@ private: bool first_draw; bool setting_row; bool draw_tabs; + bool draw_spaces; bool override_selected_font_color; bool cursor_changed_dirty; bool text_changed_dirty; @@ -613,6 +615,8 @@ public: int get_indent_size(); void set_draw_tabs(bool p_draw); bool is_drawing_tabs() const; + void set_draw_spaces(bool p_draw); + bool is_drawing_spaces() const; void set_override_selected_font_color(bool p_override_selected_font_color); bool is_overriding_selected_font_color() const; |