Merge pull request #53000 from Chaosus/lineedit_expose_selection_methods

This commit is contained in:
Rémi Verschelde 2021-09-29 10:31:37 +02:00 committed by GitHub
commit 6c0f44ca7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 0 deletions

View file

@ -82,6 +82,24 @@
Returns the scroll offset due to [member caret_column], as a number of characters.
</description>
</method>
<method name="get_selection_from_column" qualifiers="const">
<return type="int" />
<description>
Returns the selection begin column.
</description>
</method>
<method name="get_selection_to_column" qualifiers="const">
<return type="int" />
<description>
Returns the selection end column.
</description>
</method>
<method name="has_selection" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if the user has selected text.
</description>
</method>
<method name="insert_text_at_caret">
<return type="void" />
<argument index="0" name="text" type="String" />