diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index b77548a7027..bf8cc77e885 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -239,6 +239,18 @@ Returns the total width of all gutters and internal padding. + + + + Returns the total amount of lines that could be drawn. + + + + + + Returns the number of visible lines, including wrapped text. + + diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 9c38afa9783..859d755cfcd 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -7298,6 +7298,8 @@ void TextEdit::_bind_methods() { ClassDB::bind_method(D_METHOD("set_draw_fold_gutter"), &TextEdit::set_draw_fold_gutter); ClassDB::bind_method(D_METHOD("is_drawing_fold_gutter"), &TextEdit::is_drawing_fold_gutter); ClassDB::bind_method(D_METHOD("get_total_gutter_width"), &TextEdit::get_total_gutter_width); + ClassDB::bind_method(D_METHOD("get_visible_rows"), &TextEdit::get_visible_rows); + ClassDB::bind_method(D_METHOD("get_total_visible_rows"), &TextEdit::get_total_visible_rows); ClassDB::bind_method(D_METHOD("set_hiding_enabled", "enable"), &TextEdit::set_hiding_enabled); ClassDB::bind_method(D_METHOD("is_hiding_enabled"), &TextEdit::is_hiding_enabled);