diff options
| author | miwanczuk <miwanczuk7@gmail.com> | 2019-04-24 01:33:20 +0200 |
|---|---|---|
| committer | miwanczuk <miwanczuk7@gmail.com> | 2019-04-30 14:57:48 +0200 |
| commit | fda3a568efb7a0ca371e73380203442b81fc9dd8 (patch) | |
| tree | 6d7e2d17ae00fe5ec38a7d5d6ba95bdaa91a4db8 /scene/gui/text_edit.h | |
| parent | c991379b81e660e6c9d28620d61b87e9c0cb5233 (diff) | |
| download | redot-engine-fda3a568efb7a0ca371e73380203442b81fc9dd8.tar.gz | |
Issue-28355 - show spaces in 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; |
