mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
[RTL] Add method to get visible content bounding box.
This commit is contained in:
parent
d7cc121e64
commit
406a22d0da
3 changed files with 58 additions and 0 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue