diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-05 09:52:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 09:52:22 +0200 |
commit | 3a38ee96ce68a809bd4aba3eed4b02b2a3483ded (patch) | |
tree | f4af6c0e529f0d792bb8b4bd2e3cc00c911784b1 /scene/gui/text_edit.h | |
parent | 3770b5be99fe993d4eafaef3ca392f84197df6d6 (diff) | |
parent | 41f6e7c50ef8fc0e1e889745ba51a7c094d09d22 (diff) |
Merge pull request #62259 from KoBeWi/textpand
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index 9de2982d0a..6ba6e9cf20 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -456,6 +456,8 @@ private: HScrollBar *h_scroll = nullptr; VScrollBar *v_scroll = nullptr; + float content_height_cache = 0.0; + bool fit_content_height = false; bool scroll_past_end_of_file_enabled = false; // Smooth scrolling. @@ -851,6 +853,9 @@ public: void set_v_scroll_speed(float p_speed); float get_v_scroll_speed() const; + void set_fit_content_height_enabled(const bool p_enabled); + bool is_fit_content_height_enabled() const; + double get_scroll_pos_for_line(int p_line, int p_wrap_index = 0) const; // Visible lines. |