diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2021-11-07 17:26:15 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2022-01-19 17:26:22 +0000 |
commit | f43f68f605440795e39a66927b125d9f779d59f9 (patch) | |
tree | a386a81cc720c1bb4fadfaa613ffb565aad253fa /doc/classes/TextEdit.xml | |
parent | 2d1080e430e98078f7301c8160578f89202d72ee (diff) |
Convert TextEdit callbacks to Callable
Diffstat (limited to 'doc/classes/TextEdit.xml')
-rw-r--r-- | doc/classes/TextEdit.xml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 3197e59248..4db3c20d09 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -729,8 +729,7 @@ <method name="set_gutter_custom_draw"> <return type="void" /> <argument index="0" name="column" type="int" /> - <argument index="1" name="object" type="Object" /> - <argument index="2" name="callback" type="StringName" /> + <argument index="1" name="draw_callback" type="Callable" /> <description> Set a custom draw method for the gutter. The callback method must take the following args: [code]line: int, gutter: int, Area: Rect2[/code]. </description> @@ -907,11 +906,9 @@ </method> <method name="set_tooltip_request_func"> <return type="void" /> - <argument index="0" name="object" type="Object" /> - <argument index="1" name="callback" type="StringName" /> - <argument index="2" name="data" type="Variant" /> + <argument index="0" name="callback" type="Callable" /> <description> - Provide custom tooltip text. The callback method must take the following args: [code]hovered_word: String, data: Variant[/code] + Provide custom tooltip text. The callback method must take the following args: [code]hovered_word: String[/code] </description> </method> <method name="swap_lines"> |