summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-18 09:06:24 +0200
committerGitHub <noreply@github.com>2021-05-18 09:06:24 +0200
commit510030fedc79cdcd75f9e1c3c1c195cba6c2703c (patch)
tree3921d2fa9104a520154103587267b2d5d1dbe5f0 /scene/gui
parentcdb3726fe6c9d41701dc89e572c6b2631d14cf6f (diff)
parent7bb12b0d6dca73d6cbf3115be7efbcb9a83ed8a0 (diff)
Merge pull request #48528 from sent44/textedit
Expose get_total_visible_rows method to GDScript
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index ba98b3c931..e305c6210d 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -6853,6 +6853,7 @@ void TextEdit::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_line_count"), &TextEdit::get_line_count);
ClassDB::bind_method(D_METHOD("get_text"), &TextEdit::get_text);
ClassDB::bind_method(D_METHOD("get_line", "line"), &TextEdit::get_line);
+ ClassDB::bind_method(D_METHOD("get_visible_line_count"), &TextEdit::get_total_visible_rows);
ClassDB::bind_method(D_METHOD("set_line", "line", "new_text"), &TextEdit::set_line);
ClassDB::bind_method(D_METHOD("set_structured_text_bidi_override", "parser"), &TextEdit::set_structured_text_bidi_override);