summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-16 14:07:23 +0100
committerGitHub <noreply@github.com>2022-02-16 14:07:23 +0100
commiteeda603355bdaf76d138d2646b3e4316924efe29 (patch)
tree1c993f9902ad6a5f8dbefce20fe2b05bd1992189 /doc/classes
parentfe8f4cebcea52bc770a398929378e672dfff07c1 (diff)
parentc0caafe9605f0f4cc741d82a994e2a043f4bb5eb (diff)
Merge pull request #58055 from markdibarry/add_get_line_offset
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/RichTextLabel.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml
index 18d75889c3..f480071d32 100644
--- a/doc/classes/RichTextLabel.xml
+++ b/doc/classes/RichTextLabel.xml
@@ -81,12 +81,26 @@
Returns the total number of lines in the text. Wrapped text is counted as multiple lines.
</description>
</method>
+ <method name="get_line_offset">
+ <return type="float" />
+ <argument index="0" name="line" type="int" />
+ <description>
+ Returns the vertical offset of the line found at the provided index.
+ </description>
+ </method>
<method name="get_paragraph_count" qualifiers="const">
<return type="int" />
<description>
Returns the total number of paragraphs (newlines or [code]p[/code] tags in the tag stack's text tags). Considers wrapped text as one paragraph.
</description>
</method>
+ <method name="get_paragraph_offset">
+ <return type="float" />
+ <argument index="0" name="paragraph" type="int" />
+ <description>
+ Returns the vertical offset of the paragraph found at the provided index.
+ </description>
+ </method>
<method name="get_parsed_text" qualifiers="const">
<return type="String" />
<description>