Add selection getter methods to LineEdit

This commit is contained in:
Yuri Roubinsky 2021-09-24 11:00:45 +03:00
parent 10801b90f9
commit 4e0552a4ff
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" />