diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-02-19 13:41:12 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-02-26 08:20:14 +0200 |
commit | dad4aae386c927fb6dbae3e7ed45fb11082c9180 (patch) | |
tree | 4b6250245c032052a1fdb2a005c1738211ad4f42 /scene/gui/text_edit.h | |
parent | 81f3d43cc1ba01136795fb2059bbaa55bc514a16 (diff) | |
download | redot-engine-dad4aae386c927fb6dbae3e7ed45fb11082c9180.tar.gz |
[TextEdit] Add support for optional wrapped line indentation.
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index d49be860a9..b8e30c7900 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -181,6 +181,7 @@ private: int tab_size = 4; int gutter_count = 0; + bool indent_wrapped_lines = false; void _calculate_line_height(); void _calculate_max_line_width(); @@ -188,6 +189,9 @@ private: public: void set_tab_size(int p_tab_size); int get_tab_size() const; + void set_indent_wrapped_lines(bool p_enabled); + bool is_indent_wrapped_lines() const; + void set_font(const Ref<Font> &p_font); void set_font_size(int p_font_size); void set_direction_and_language(TextServer::Direction p_direction, const String &p_language); @@ -720,6 +724,9 @@ public: void set_tab_size(const int p_size); int get_tab_size() const; + void set_indent_wrapped_lines(bool p_enabled); + bool is_indent_wrapped_lines() const; + // User controls void set_overtype_mode_enabled(const bool p_enabled); bool is_overtype_mode_enabled() const; |