diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-10-22 14:29:56 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-02-13 18:37:37 +0200 |
commit | deffe6a3bee2bb15fbc7946711e073ab447e472a (patch) | |
tree | b69f9694f318cf7db190ed16c4f355227b79e403 /doc/classes/DisplayServer.xml | |
parent | e92d55bbf417aa9f4592a863cb5b2c7ba0740e21 (diff) | |
download | redot-engine-deffe6a3bee2bb15fbc7946711e073ab447e472a.tar.gz |
[macOS] Add support for native help menu search callbacks, integrate editor help.
Diffstat (limited to 'doc/classes/DisplayServer.xml')
-rw-r--r-- | doc/classes/DisplayServer.xml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index 09bb20af79..c60a9a23ed 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -875,6 +875,17 @@ Returns [code]true[/code] if the specified [param feature] is supported by the current [DisplayServer], [code]false[/code] otherwise. </description> </method> + <method name="help_set_search_callbacks"> + <return type="void" /> + <param index="0" name="search_callback" type="Callable" /> + <param index="1" name="action_callback" type="Callable" /> + <description> + Sets native help system search callbacks. + [param search_callback] has the following arguments: [code]String search_string, int result_limit[/code] and return a [Dictionary] with "key, display name" pairs for the search results. Called when the user enters search terms in the [code]Help[/code] menu. + [param action_callback] has the following arguments: [code]String key[/code]. Called when the user selects a search result in the [code]Help[/code] menu. + [b]Note:[/b] This method is implemented only on macOS. + </description> + </method> <method name="ime_get_selection" qualifiers="const"> <return type="Vector2i" /> <description> @@ -1791,6 +1802,9 @@ <constant name="FEATURE_STATUS_INDICATOR" value="22" enum="Feature"> Display server supports application status indicators. </constant> + <constant name="FEATURE_NATIVE_HELP" value="23" enum="Feature"> + Display server supports native help system search callbacks. See [method help_set_search_callbacks]. + </constant> <constant name="MOUSE_MODE_VISIBLE" value="0" enum="MouseMode"> Makes the mouse cursor visible if it is hidden. </constant> |