Add offset methods for lines and paragraphs in RichTextLabel
Adds `get_line_offset` and `get_paragraph_offset` methods to `RichTextLabel` Fix arg mismatch
This commit is contained in:
parent
48ed0400bc
commit
c0caafe960
3 changed files with 42 additions and 0 deletions
|
|
@ -551,6 +551,9 @@ public:
|
|||
int get_paragraph_count() const;
|
||||
int get_visible_paragraph_count() const;
|
||||
|
||||
float get_line_offset(int p_line);
|
||||
float get_paragraph_offset(int p_paragraph);
|
||||
|
||||
void scroll_to_line(int p_line);
|
||||
int get_line_count() const;
|
||||
int get_visible_line_count() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue