[RTL] Add method to get visible content bounding box.

This commit is contained in:
Pāvels Nadtočajevs 2025-07-10 09:56:23 +03:00
parent d7cc121e64
commit 406a22d0da
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
3 changed files with 58 additions and 0 deletions

View file

@ -536,6 +536,7 @@ private:
int current_char_ofs = 0;
int visible_paragraph_count = 0;
int visible_line_count = 0;
Rect2i visible_rect;
int tab_size = 4;
bool underline_meta = true;
@ -871,6 +872,8 @@ public:
int get_line_height(int p_line) const;
int get_line_width(int p_line) const;
Rect2i get_visible_content_rect() const;
void scroll_to_selection();
VScrollBar *get_v_scroll_bar() { return vscroll; }