From 4775db1600ea69dd961767399441820f274e41f8 Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Wed, 11 Nov 2020 09:26:55 +0100 Subject: Expose LineEdit scroll offset to scripts --- scene/gui/line_edit.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scene/gui/line_edit.h') diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h index d6cc1f1f11..a5e5b6988f 100644 --- a/scene/gui/line_edit.h +++ b/scene/gui/line_edit.h @@ -80,7 +80,7 @@ private: PopupMenu *menu; int cursor_pos; - int window_pos; + int scroll_offset; int max_length; // 0 for no maximum. int cached_width; @@ -106,7 +106,7 @@ private: struct TextOperation { int cursor_pos; - int window_pos; + int scroll_offset; int cached_width; String text; }; @@ -144,7 +144,8 @@ private: void shift_selection_check_post(bool); void selection_fill_at_cursor(); - void set_window_pos(int p_pos); + void set_scroll_offset(int p_pos); + int get_scroll_offset() const; void set_cursor_at_pixel_pos(int p_x); int get_cursor_pixel_pos(); -- cgit v1.2.3