summaryrefslogtreecommitdiff
path: root/doc/classes/DisplayServer.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/DisplayServer.xml')
-rw-r--r--doc/classes/DisplayServer.xml521
1 files changed, 273 insertions, 248 deletions
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml
index cec504584c..e642bc7b73 100644
--- a/doc/classes/DisplayServer.xml
+++ b/doc/classes/DisplayServer.xml
@@ -28,14 +28,14 @@
</method>
<method name="clipboard_set">
<return type="void" />
- <argument index="0" name="clipboard" type="String" />
+ <param index="0" name="clipboard" type="String" />
<description>
Sets the user's clipboard content to the given string.
</description>
</method>
<method name="clipboard_set_primary">
<return type="void" />
- <argument index="0" name="clipboard_primary" type="String" />
+ <param index="0" name="clipboard_primary" type="String" />
<description>
Sets the user's primary clipboard content to the given string.
[b]Note:[/b] This method is only implemented on Linux.
@@ -43,10 +43,10 @@
</method>
<method name="create_sub_window">
<return type="int" />
- <argument index="0" name="mode" type="int" enum="DisplayServer.WindowMode" />
- <argument index="1" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode" />
- <argument index="2" name="flags" type="int" />
- <argument index="3" name="rect" type="Rect2i" default="Rect2i(0, 0, 0, 0)" />
+ <param index="0" name="mode" type="int" enum="DisplayServer.WindowMode" />
+ <param index="1" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode" />
+ <param index="2" name="flags" type="int" />
+ <param index="3" name="rect" type="Rect2i" default="Rect2i(0, 0, 0, 0)" />
<description>
</description>
</method>
@@ -57,45 +57,45 @@
</method>
<method name="cursor_set_custom_image">
<return type="void" />
- <argument index="0" name="cursor" type="Resource" />
- <argument index="1" name="shape" type="int" enum="DisplayServer.CursorShape" default="0" />
- <argument index="2" name="hotspot" type="Vector2" default="Vector2(0, 0)" />
+ <param index="0" name="cursor" type="Resource" />
+ <param index="1" name="shape" type="int" enum="DisplayServer.CursorShape" default="0" />
+ <param index="2" name="hotspot" type="Vector2" default="Vector2(0, 0)" />
<description>
</description>
</method>
<method name="cursor_set_shape">
<return type="void" />
- <argument index="0" name="shape" type="int" enum="DisplayServer.CursorShape" />
+ <param index="0" name="shape" type="int" enum="DisplayServer.CursorShape" />
<description>
</description>
</method>
<method name="delete_sub_window">
<return type="void" />
- <argument index="0" name="window_id" type="int" />
+ <param index="0" name="window_id" type="int" />
<description>
</description>
</method>
<method name="dialog_input_text">
<return type="int" enum="Error" />
- <argument index="0" name="title" type="String" />
- <argument index="1" name="description" type="String" />
- <argument index="2" name="existing_text" type="String" />
- <argument index="3" name="callback" type="Callable" />
+ <param index="0" name="title" type="String" />
+ <param index="1" name="description" type="String" />
+ <param index="2" name="existing_text" type="String" />
+ <param index="3" name="callback" type="Callable" />
<description>
</description>
</method>
<method name="dialog_show">
<return type="int" enum="Error" />
- <argument index="0" name="title" type="String" />
- <argument index="1" name="description" type="String" />
- <argument index="2" name="buttons" type="PackedStringArray" />
- <argument index="3" name="callback" type="Callable" />
+ <param index="0" name="title" type="String" />
+ <param index="1" name="description" type="String" />
+ <param index="2" name="buttons" type="PackedStringArray" />
+ <param index="3" name="callback" type="Callable" />
<description>
</description>
</method>
<method name="enable_for_stealing_focus">
<return type="void" />
- <argument index="0" name="process_id" type="int" />
+ <param index="0" name="process_id" type="int" />
<description>
</description>
</method>
@@ -134,7 +134,7 @@
</method>
<method name="get_window_at_screen_position" qualifiers="const">
<return type="int" />
- <argument index="0" name="position" type="Vector2i" />
+ <param index="0" name="position" type="Vector2i" />
<description>
</description>
</method>
@@ -145,12 +145,12 @@
</method>
<method name="global_menu_add_check_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="label" type="String" />
- <argument index="2" name="callback" type="Callable" />
- <argument index="3" name="tag" type="Variant" default="null" />
- <argument index="4" name="accelerator" type="int" enum="Key" default="0" />
- <argument index="5" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="label" type="String" />
+ <param index="2" name="callback" type="Callable" />
+ <param index="3" name="tag" type="Variant" default="null" />
+ <param index="4" name="accelerator" type="int" enum="Key" default="0" />
+ <param index="5" name="index" type="int" default="-1" />
<description>
Adds a new checkable item with text [code]label[/code] to the global menu with ID [code]menu_root[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -163,13 +163,13 @@
</method>
<method name="global_menu_add_icon_check_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="icon" type="Texture2D" />
- <argument index="2" name="label" type="String" />
- <argument index="3" name="callback" type="Callable" />
- <argument index="4" name="tag" type="Variant" default="null" />
- <argument index="5" name="accelerator" type="int" enum="Key" default="0" />
- <argument index="6" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="icon" type="Texture2D" />
+ <param index="2" name="label" type="String" />
+ <param index="3" name="callback" type="Callable" />
+ <param index="4" name="tag" type="Variant" default="null" />
+ <param index="5" name="accelerator" type="int" enum="Key" default="0" />
+ <param index="6" name="index" type="int" default="-1" />
<description>
Adds a new checkable item with text [code]label[/code] and icon [code]icon[/code] to the global menu with ID [code]menu_root[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -182,13 +182,13 @@
</method>
<method name="global_menu_add_icon_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="icon" type="Texture2D" />
- <argument index="2" name="label" type="String" />
- <argument index="3" name="callback" type="Callable" />
- <argument index="4" name="tag" type="Variant" default="null" />
- <argument index="5" name="accelerator" type="int" enum="Key" default="0" />
- <argument index="6" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="icon" type="Texture2D" />
+ <param index="2" name="label" type="String" />
+ <param index="3" name="callback" type="Callable" />
+ <param index="4" name="tag" type="Variant" default="null" />
+ <param index="5" name="accelerator" type="int" enum="Key" default="0" />
+ <param index="6" name="index" type="int" default="-1" />
<description>
Adds a new item with text [code]label[/code] and icon [code]icon[/code] to the global menu with ID [code]menu_root[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -201,13 +201,13 @@
</method>
<method name="global_menu_add_icon_radio_check_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="icon" type="Texture2D" />
- <argument index="2" name="label" type="String" />
- <argument index="3" name="callback" type="Callable" />
- <argument index="4" name="tag" type="Variant" default="null" />
- <argument index="5" name="accelerator" type="int" enum="Key" default="0" />
- <argument index="6" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="icon" type="Texture2D" />
+ <param index="2" name="label" type="String" />
+ <param index="3" name="callback" type="Callable" />
+ <param index="4" name="tag" type="Variant" default="null" />
+ <param index="5" name="accelerator" type="int" enum="Key" default="0" />
+ <param index="6" name="index" type="int" default="-1" />
<description>
Adds a new radio-checkable item with text [code]label[/code] and icon [code]icon[/code] to the global menu with ID [code]menu_root[/code].
[b]Note:[/b] Radio-checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method global_menu_set_item_checked] for more info on how to control it.
@@ -221,12 +221,12 @@
</method>
<method name="global_menu_add_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="label" type="String" />
- <argument index="2" name="callback" type="Callable" />
- <argument index="3" name="tag" type="Variant" default="null" />
- <argument index="4" name="accelerator" type="int" enum="Key" default="0" />
- <argument index="5" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="label" type="String" />
+ <param index="2" name="callback" type="Callable" />
+ <param index="3" name="tag" type="Variant" default="null" />
+ <param index="4" name="accelerator" type="int" enum="Key" default="0" />
+ <param index="5" name="index" type="int" default="-1" />
<description>
Adds a new item with text [code]label[/code] to the global menu with ID [code]menu_root[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -239,14 +239,14 @@
</method>
<method name="global_menu_add_multistate_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="labe" type="String" />
- <argument index="2" name="max_states" type="int" />
- <argument index="3" name="default_state" type="int" />
- <argument index="4" name="callback" type="Callable" />
- <argument index="5" name="tag" type="Variant" default="null" />
- <argument index="6" name="accelerator" type="int" enum="Key" default="0" />
- <argument index="7" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="labe" type="String" />
+ <param index="2" name="max_states" type="int" />
+ <param index="3" name="default_state" type="int" />
+ <param index="4" name="callback" type="Callable" />
+ <param index="5" name="tag" type="Variant" default="null" />
+ <param index="6" name="accelerator" type="int" enum="Key" default="0" />
+ <param index="7" name="index" type="int" default="-1" />
<description>
Adds a new item with text [code]label[/code] to the global menu with ID [code]menu_root[/code].
Contrarily to normal binary items, multistate items can have more than two states, as defined by [code]max_states[/code]. Each press or activate of the item will increase the state by one. The default value is defined by [code]default_state[/code].
@@ -260,12 +260,12 @@
</method>
<method name="global_menu_add_radio_check_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="label" type="String" />
- <argument index="2" name="callback" type="Callable" />
- <argument index="3" name="tag" type="Variant" default="null" />
- <argument index="4" name="accelerator" type="int" enum="Key" default="0" />
- <argument index="5" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="label" type="String" />
+ <param index="2" name="callback" type="Callable" />
+ <param index="3" name="tag" type="Variant" default="null" />
+ <param index="4" name="accelerator" type="int" enum="Key" default="0" />
+ <param index="5" name="index" type="int" default="-1" />
<description>
Adds a new radio-checkable item with text [code]label[/code] to the global menu with ID [code]menu_root[/code].
[b]Note:[/b] Radio-checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. See [method global_menu_set_item_checked] for more info on how to control it.
@@ -279,8 +279,8 @@
</method>
<method name="global_menu_add_separator">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="index" type="int" default="-1" />
<description>
Adds a separator between items to the global menu with ID [code]menu_root[/code]. Separators also occupy an index.
[b]Note:[/b] This method is implemented on macOS.
@@ -293,10 +293,10 @@
</method>
<method name="global_menu_add_submenu_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="label" type="String" />
- <argument index="2" name="submenu" type="String" />
- <argument index="3" name="index" type="int" default="-1" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="label" type="String" />
+ <param index="2" name="submenu" type="String" />
+ <param index="3" name="index" type="int" default="-1" />
<description>
Adds an item that will act as a submenu of the global menu [code]menu_root[/code]. The [code]submenu[/code] argument is the ID of the global menu root that will be shown when the item is clicked.
[b]Note:[/b] This method is implemented on macOS.
@@ -309,7 +309,7 @@
</method>
<method name="global_menu_clear">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
+ <param index="0" name="menu_root" type="String" />
<description>
Removes all items from the global menu with ID [code]menu_root[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -322,8 +322,8 @@
</method>
<method name="global_menu_get_item_accelerator" qualifiers="const">
<return type="int" enum="Key" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the accelerator of the item at index [code]idx[/code]. Accelerators are special combinations of keys that activate the item, no matter which control is focused.
[b]Note:[/b] This method is implemented on macOS.
@@ -331,8 +331,8 @@
</method>
<method name="global_menu_get_item_callback" qualifiers="const">
<return type="Callable" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the callback of the item at index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -340,8 +340,8 @@
</method>
<method name="global_menu_get_item_icon" qualifiers="const">
<return type="Texture2D" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the icon of the item at index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -349,8 +349,8 @@
</method>
<method name="global_menu_get_item_index_from_tag" qualifiers="const">
<return type="int" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="tag" type="Variant" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="tag" type="Variant" />
<description>
Returns the index of the item with the specified [code]tag[/code]. Index is automatically assigned to each item by the engine. Index can not be set manually.
[b]Note:[/b] This method is implemented on macOS.
@@ -358,8 +358,8 @@
</method>
<method name="global_menu_get_item_index_from_text" qualifiers="const">
<return type="int" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="text" type="String" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="text" type="String" />
<description>
Returns the index of the item with the specified [code]text[/code]. Index is automatically assigned to each item by the engine. Index can not be set manually.
[b]Note:[/b] This method is implemented on macOS.
@@ -367,8 +367,8 @@
</method>
<method name="global_menu_get_item_max_states" qualifiers="const">
<return type="int" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns number of states of an multistate item. See [method global_menu_add_multistate_item] for details.
[b]Note:[/b] This method is implemented on macOS.
@@ -376,8 +376,8 @@
</method>
<method name="global_menu_get_item_state" qualifiers="const">
<return type="int" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the state of an multistate item. See [method global_menu_add_multistate_item] for details.
[b]Note:[/b] This method is implemented on macOS.
@@ -385,8 +385,8 @@
</method>
<method name="global_menu_get_item_submenu" qualifiers="const">
<return type="String" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the submenu ID of the item at index [code]idx[/code]. See [method global_menu_add_submenu_item] for more info on how to add a submenu.
[b]Note:[/b] This method is implemented on macOS.
@@ -394,8 +394,8 @@
</method>
<method name="global_menu_get_item_tag" qualifiers="const">
<return type="Variant" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the metadata of the specified item, which might be of any type. You can set it with [method global_menu_set_item_tag], which provides a simple way of assigning context data to items.
[b]Note:[/b] This method is implemented on macOS.
@@ -403,8 +403,8 @@
</method>
<method name="global_menu_get_item_text" qualifiers="const">
<return type="String" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the text of the item at index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -412,8 +412,8 @@
</method>
<method name="global_menu_get_item_tooltip" qualifiers="const">
<return type="String" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns the tooltip associated with the specified index index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -421,8 +421,8 @@
</method>
<method name="global_menu_is_item_checkable" qualifiers="const">
<return type="bool" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns [code]true[/code] if the item at index [code]idx[/code] is checkable in some way, i.e. if it has a checkbox or radio button.
[b]Note:[/b] This method is implemented on macOS.
@@ -430,8 +430,8 @@
</method>
<method name="global_menu_is_item_checked" qualifiers="const">
<return type="bool" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns [code]true[/code] if the item at index [code]idx[/code] is checked.
[b]Note:[/b] This method is implemented on macOS.
@@ -439,8 +439,8 @@
</method>
<method name="global_menu_is_item_disabled" qualifiers="const">
<return type="bool" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns [code]true[/code] if the item at index [code]idx[/code] is disabled. When it is disabled it can't be selected, or its action invoked.
See [method global_menu_set_item_disabled] for more info on how to disable an item.
@@ -449,8 +449,8 @@
</method>
<method name="global_menu_is_item_radio_checkable" qualifiers="const">
<return type="bool" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Returns [code]true[/code] if the item at index [code]idx[/code] has radio button-style checkability.
[b]Note:[/b] This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.
@@ -459,8 +459,8 @@
</method>
<method name="global_menu_remove_item">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
<description>
Removes the item at index [code]idx[/code] from the global menu [code]menu_root[/code].
[b]Note:[/b] The indices of items after the removed item will be shifted by one.
@@ -469,9 +469,9 @@
</method>
<method name="global_menu_set_item_accelerator">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="keycode" type="int" enum="Key" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="keycode" type="int" enum="Key" />
<description>
Sets the accelerator of the item at index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -479,9 +479,9 @@
</method>
<method name="global_menu_set_item_callback">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="callback" type="Callable" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="callback" type="Callable" />
<description>
Sets the callback of the item at index [code]idx[/code]. Callback is emitted when an item is pressed or its accelerator is activated.
[b]Note:[/b] This method is implemented on macOS.
@@ -489,9 +489,9 @@
</method>
<method name="global_menu_set_item_checkable">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="checkable" type="bool" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="checkable" type="bool" />
<description>
Sets whether the item at index [code]idx[/code] has a checkbox. If [code]false[/code], sets the type of the item to plain text.
[b]Note:[/b] This method is implemented on macOS.
@@ -499,9 +499,9 @@
</method>
<method name="global_menu_set_item_checked">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="checked" type="bool" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="checked" type="bool" />
<description>
Sets the checkstate status of the item at index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -509,9 +509,9 @@
</method>
<method name="global_menu_set_item_disabled">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="disabled" type="bool" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="disabled" type="bool" />
<description>
Enables/disables the item at index [code]idx[/code]. When it is disabled, it can't be selected and its action can't be invoked.
[b]Note:[/b] This method is implemented on macOS.
@@ -519,9 +519,9 @@
</method>
<method name="global_menu_set_item_icon">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="icon" type="Texture2D" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="icon" type="Texture2D" />
<description>
Replaces the [Texture2D] icon of the specified [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -530,9 +530,9 @@
</method>
<method name="global_menu_set_item_max_states">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="max_states" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="max_states" type="int" />
<description>
Sets number of state of an multistate item. See [method global_menu_add_multistate_item] for details.
[b]Note:[/b] This method is implemented on macOS.
@@ -540,9 +540,9 @@
</method>
<method name="global_menu_set_item_radio_checkable">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="checkable" type="bool" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="checkable" type="bool" />
<description>
Sets the type of the item at the specified index [code]idx[/code] to radio button. If [code]false[/code], sets the type of the item to plain text
[b]Note:[/b] This is purely cosmetic; you must add the logic for checking/unchecking items in radio groups.
@@ -551,9 +551,9 @@
</method>
<method name="global_menu_set_item_state">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="state" type="int" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="state" type="int" />
<description>
Sets the state of an multistate item. See [method global_menu_add_multistate_item] for details.
[b]Note:[/b] This method is implemented on macOS.
@@ -561,9 +561,9 @@
</method>
<method name="global_menu_set_item_submenu">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="submenu" type="String" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="submenu" type="String" />
<description>
Sets the submenu of the item at index [code]idx[/code]. The submenu is the ID of a global menu root that would be shown when the item is clicked.
[b]Note:[/b] This method is implemented on macOS.
@@ -571,9 +571,9 @@
</method>
<method name="global_menu_set_item_tag">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="tag" type="Variant" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="tag" type="Variant" />
<description>
Sets the metadata of an item, which may be of any type. You can later get it with [method global_menu_get_item_tag], which provides a simple way of assigning context data to items.
[b]Note:[/b] This method is implemented on macOS.
@@ -581,9 +581,9 @@
</method>
<method name="global_menu_set_item_text">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="text" type="String" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="text" type="String" />
<description>
Sets the text of the item at index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -591,9 +591,9 @@
</method>
<method name="global_menu_set_item_tooltip">
<return type="void" />
- <argument index="0" name="menu_root" type="String" />
- <argument index="1" name="idx" type="int" />
- <argument index="2" name="tooltip" type="String" />
+ <param index="0" name="menu_root" type="String" />
+ <param index="1" name="idx" type="int" />
+ <param index="2" name="tooltip" type="String" />
<description>
Sets the [String] tooltip of the item at the specified index [code]idx[/code].
[b]Note:[/b] This method is implemented on macOS.
@@ -601,7 +601,7 @@
</method>
<method name="has_feature" qualifiers="const">
<return type="bool" />
- <argument index="0" name="feature" type="int" enum="DisplayServer.Feature" />
+ <param index="0" name="feature" type="int" enum="DisplayServer.Feature" />
<description>
</description>
</method>
@@ -624,7 +624,7 @@
</method>
<method name="keyboard_get_keycode_from_physical" qualifiers="const">
<return type="int" enum="Key" />
- <argument index="0" name="keycode" type="int" enum="Key" />
+ <param index="0" name="keycode" type="int" enum="Key" />
<description>
Converts a physical (US QWERTY) [code]keycode[/code] to one in the active keyboard layout.
[b]Note:[/b] This method is implemented on Linux, macOS and Windows.
@@ -639,7 +639,7 @@
</method>
<method name="keyboard_get_layout_language" qualifiers="const">
<return type="String" />
- <argument index="0" name="index" type="int" />
+ <param index="0" name="index" type="int" />
<description>
Returns the ISO-639/BCP-47 language code of the keyboard layout at position [code]index[/code].
[b]Note:[/b] This method is implemented on Linux, macOS and Windows.
@@ -647,7 +647,7 @@
</method>
<method name="keyboard_get_layout_name" qualifiers="const">
<return type="String" />
- <argument index="0" name="index" type="int" />
+ <param index="0" name="index" type="int" />
<description>
Returns the localized name of the keyboard layout at position [code]index[/code].
[b]Note:[/b] This method is implemented on Linux, macOS and Windows.
@@ -655,7 +655,7 @@
</method>
<method name="keyboard_set_current_layout">
<return type="void" />
- <argument index="0" name="index" type="int" />
+ <param index="0" name="index" type="int" />
<description>
Sets active keyboard layout.
[b]Note:[/b] This method is implemented on Linux, macOS and Windows.
@@ -679,7 +679,7 @@
</method>
<method name="mouse_set_mode">
<return type="void" />
- <argument index="0" name="mouse_mode" type="int" enum="DisplayServer.MouseMode" />
+ <param index="0" name="mouse_mode" type="int" enum="DisplayServer.MouseMode" />
<description>
</description>
</method>
@@ -690,7 +690,7 @@
</method>
<method name="screen_get_dpi" qualifiers="const">
<return type="int" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
Returns the dots per inch density of the specified screen. If [code]screen[/code] is [/code]SCREEN_OF_MAIN_WINDOW[/code] (the default value), a screen with the main window will be used.
[b]Note:[/b] On macOS, returned value is inaccurate if fractional display scaling mode is used.
@@ -716,19 +716,19 @@
</method>
<method name="screen_get_orientation" qualifiers="const">
<return type="int" enum="DisplayServer.ScreenOrientation" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
</description>
</method>
<method name="screen_get_position" qualifiers="const">
<return type="Vector2i" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
</description>
</method>
<method name="screen_get_refresh_rate" qualifiers="const">
<return type="float" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
Returns the current refresh rate of the specified screen. If [code]screen[/code] is [constant SCREEN_OF_MAIN_WINDOW] (the default value), a screen with the main window will be used.
[b]Note:[/b] Returns [code]-1.0[/code] if the DisplayServer fails to find the refresh rate for the specified screen. On HTML5, [method screen_get_refresh_rate] will always return [code]-1.0[/code] as there is no way to retrieve the refresh rate on that platform.
@@ -742,7 +742,7 @@
</method>
<method name="screen_get_scale" qualifiers="const">
<return type="float" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
Returns the scale factor of the specified screen by index.
[b]Note:[/b] On macOS returned value is [code]2.0[/code] for hiDPI (Retina) screen, and [code]1.0[/code] for all other cases.
@@ -751,13 +751,13 @@
</method>
<method name="screen_get_size" qualifiers="const">
<return type="Vector2i" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
</description>
</method>
<method name="screen_get_usable_rect" qualifiers="const">
<return type="Rect2i" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
</description>
</method>
@@ -768,32 +768,32 @@
</method>
<method name="screen_is_touchscreen" qualifiers="const">
<return type="bool" />
- <argument index="0" name="screen" type="int" default="-1" />
+ <param index="0" name="screen" type="int" default="-1" />
<description>
</description>
</method>
<method name="screen_set_keep_on">
<return type="void" />
- <argument index="0" name="enable" type="bool" />
+ <param index="0" name="enable" type="bool" />
<description>
</description>
</method>
<method name="screen_set_orientation">
<return type="void" />
- <argument index="0" name="orientation" type="int" enum="DisplayServer.ScreenOrientation" />
- <argument index="1" name="screen" type="int" default="-1" />
+ <param index="0" name="orientation" type="int" enum="DisplayServer.ScreenOrientation" />
+ <param index="1" name="screen" type="int" default="-1" />
<description>
</description>
</method>
<method name="set_icon">
<return type="void" />
- <argument index="0" name="image" type="Image" />
+ <param index="0" name="image" type="Image" />
<description>
</description>
</method>
<method name="set_native_icon">
<return type="void" />
- <argument index="0" name="filename" type="String" />
+ <param index="0" name="filename" type="String" />
<description>
</description>
</method>
@@ -813,7 +813,7 @@
</method>
<method name="tablet_get_driver_name" qualifiers="const">
<return type="String" />
- <argument index="0" name="idx" type="int" />
+ <param index="0" name="idx" type="int" />
<description>
Returns the tablet driver name for the given index.
[b]Note:[/b] This method is implemented on Windows.
@@ -821,7 +821,7 @@
</method>
<method name="tablet_set_current_driver">
<return type="void" />
- <argument index="0" name="name" type="String" />
+ <param index="0" name="name" type="String" />
<description>
Set active tablet driver name.
[b]Note:[/b] This method is implemented on Windows.
@@ -840,7 +840,7 @@
</method>
<method name="tts_get_voices_for_language" qualifiers="const">
<return type="PackedStringArray" />
- <argument index="0" name="language" type="String" />
+ <param index="0" name="language" type="String" />
<description>
Returns an [PackedStringArray] of voice identifiers for the [code]language[/code].
[b]Note:[/b] This method is implemented on Android, iOS, HTML5, Linux, macOS, and Windows.
@@ -876,8 +876,8 @@
</method>
<method name="tts_set_utterance_callback">
<return type="void" />
- <argument index="0" name="event" type="int" enum="DisplayServer.TTSUtteranceEvent" />
- <argument index="1" name="callable" type="Callable" />
+ <param index="0" name="event" type="int" enum="DisplayServer.TTSUtteranceEvent" />
+ <param index="1" name="callable" type="Callable" />
<description>
Adds a callback, which is called when the utterance has started, finished, canceled or reached a text boundary.
- [code]TTS_UTTERANCE_STARTED[/code], [code]TTS_UTTERANCE_ENDED[/code], and [code]TTS_UTTERANCE_CANCELED[/code] callable's method should take one [int] parameter, the utterance id.
@@ -888,13 +888,13 @@
</method>
<method name="tts_speak">
<return type="void" />
- <argument index="0" name="text" type="String" />
- <argument index="1" name="voice" type="String" />
- <argument index="2" name="volume" type="int" default="50" />
- <argument index="3" name="pitch" type="float" default="1.0" />
- <argument index="4" name="rate" type="float" default="1.0" />
- <argument index="5" name="utterance_id" type="int" default="0" />
- <argument index="6" name="interrupt" type="bool" default="false" />
+ <param index="0" name="text" type="String" />
+ <param index="1" name="voice" type="String" />
+ <param index="2" name="volume" type="int" default="50" />
+ <param index="3" name="pitch" type="float" default="1.0" />
+ <param index="4" name="rate" type="float" default="1.0" />
+ <param index="5" name="utterance_id" type="int" default="0" />
+ <param index="6" name="interrupt" type="bool" default="false" />
<description>
Adds an utterance to the queue. If [code]interrupt[/code] is [code]true[/code], the queue is cleared first.
- [code]voice[/code] identifier is one of the [code]"id"[/code] values returned by [method tts_get_voices] or one of the values returned by [method tts_get_voices_for_language].
@@ -928,40 +928,40 @@
</method>
<method name="virtual_keyboard_show">
<return type="void" />
- <argument index="0" name="existing_text" type="String" />
- <argument index="1" name="position" type="Rect2" default="Rect2(0, 0, 0, 0)" />
- <argument index="2" name="multiline" type="bool" default="false" />
- <argument index="3" name="max_length" type="int" default="-1" />
- <argument index="4" name="cursor_start" type="int" default="-1" />
- <argument index="5" name="cursor_end" type="int" default="-1" />
+ <param index="0" name="existing_text" type="String" />
+ <param index="1" name="position" type="Rect2" default="Rect2(0, 0, 0, 0)" />
+ <param index="2" name="type" type="int" enum="DisplayServer.VirtualKeyboardType" default="0" />
+ <param index="3" name="max_length" type="int" default="-1" />
+ <param index="4" name="cursor_start" type="int" default="-1" />
+ <param index="5" name="cursor_end" type="int" default="-1" />
<description>
Shows the virtual keyboard if the platform has one.
[code]existing_text[/code] parameter is useful for implementing your own [LineEdit] or [TextEdit], as it tells the virtual keyboard what text has already been typed (the virtual keyboard uses it for auto-correct and predictions).
[code]position[/code] parameter is the screen space [Rect2] of the edited text.
- [code]multiline[/code] parameter needs to be set to [code]true[/code] to be able to enter multiple lines of text, as in [TextEdit].
+ [code]type[/code] parameter allows configuring which type of virtual keyboard to show.
[code]max_length[/code] limits the number of characters that can be entered if different from [code]-1[/code].
[code]cursor_start[/code] can optionally define the current text cursor position if [code]cursor_end[/code] is not set.
[code]cursor_start[/code] and [code]cursor_end[/code] can optionally define the current text selection.
- [b]Note:[/b] This method is implemented on Android, iOS and UWP.
+ [b]Note:[/b] This method is implemented on Android, iOS and HTML5.
</description>
</method>
<method name="warp_mouse">
<return type="void" />
- <argument index="0" name="position" type="Vector2i" />
+ <param index="0" name="position" type="Vector2i" />
<description>
Sets the mouse cursor position to the given [code]position[/code] relative to an origin at the upper left corner of the currently focused game Window Manager window.
</description>
</method>
<method name="window_attach_instance_id">
<return type="void" />
- <argument index="0" name="instance_id" type="int" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="instance_id" type="int" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_can_draw" qualifiers="const">
<return type="bool" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
@@ -973,47 +973,47 @@
</method>
<method name="window_get_attached_instance_id" qualifiers="const">
<return type="int" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_get_current_screen" qualifiers="const">
<return type="int" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_get_flag" qualifiers="const">
<return type="bool" />
- <argument index="0" name="flag" type="int" enum="DisplayServer.WindowFlags" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="flag" type="int" enum="DisplayServer.WindowFlags" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Returns the current value of the given window's [code]flag[/code].
</description>
</method>
<method name="window_get_max_size" qualifiers="const">
<return type="Vector2i" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_get_min_size" qualifiers="const">
<return type="Vector2i" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_get_mode" qualifiers="const">
<return type="int" enum="DisplayServer.WindowMode" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
Returns the mode of the given window.
</description>
</method>
<method name="window_get_native_handle" qualifiers="const">
<return type="int" />
- <argument index="0" name="handle_type" type="int" enum="DisplayServer.HandleType" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="handle_type" type="int" enum="DisplayServer.HandleType" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Returns internal structure pointers for use in plugins.
[b]Note:[/b] This method is implemented on Android, Linux, macOS and Windows.
@@ -1021,67 +1021,67 @@
</method>
<method name="window_get_popup_safe_rect" qualifiers="const">
<return type="Rect2i" />
- <argument index="0" name="window" type="int" />
+ <param index="0" name="window" type="int" />
<description>
Returns the bounding box of control, or menu item that was used to open the popup window, in the screen coordinate system.
</description>
</method>
<method name="window_get_position" qualifiers="const">
<return type="Vector2i" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
Returns the position of the given window to on the screen.
</description>
</method>
<method name="window_get_real_size" qualifiers="const">
<return type="Vector2i" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_get_size" qualifiers="const">
<return type="Vector2i" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_get_vsync_mode" qualifiers="const">
<return type="int" enum="DisplayServer.VSyncMode" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
- Returns the VSync mode of the given window.
+ Returns the V-Sync mode of the given window.
</description>
</method>
<method name="window_move_to_foreground">
<return type="void" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_request_attention">
<return type="void" />
- <argument index="0" name="window_id" type="int" default="0" />
+ <param index="0" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_current_screen">
<return type="void" />
- <argument index="0" name="screen" type="int" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="screen" type="int" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_drop_files_callback">
<return type="void" />
- <argument index="0" name="callback" type="Callable" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="callback" type="Callable" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_exclusive">
<return type="void" />
- <argument index="0" name="window_id" type="int" />
- <argument index="1" name="exclusive" type="bool" />
+ <param index="0" name="window_id" type="int" />
+ <param index="1" name="exclusive" type="bool" />
<description>
If set to [code]true[/code], this window will always stay on top of its parent window, parent window will ignore input while this window is opened.
[b]Note:[/b] On macOS, exclusive windows are confined to the same space (virtual desktop or screen) as the parent window.
@@ -1090,52 +1090,52 @@
</method>
<method name="window_set_flag">
<return type="void" />
- <argument index="0" name="flag" type="int" enum="DisplayServer.WindowFlags" />
- <argument index="1" name="enabled" type="bool" />
- <argument index="2" name="window_id" type="int" default="0" />
+ <param index="0" name="flag" type="int" enum="DisplayServer.WindowFlags" />
+ <param index="1" name="enabled" type="bool" />
+ <param index="2" name="window_id" type="int" default="0" />
<description>
Enables or disables the given window's given [code]flag[/code]. See [enum WindowFlags] for possible values and their behavior.
</description>
</method>
<method name="window_set_ime_active">
<return type="void" />
- <argument index="0" name="active" type="bool" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="active" type="bool" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_ime_position">
<return type="void" />
- <argument index="0" name="position" type="Vector2i" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="position" type="Vector2i" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_input_event_callback">
<return type="void" />
- <argument index="0" name="callback" type="Callable" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="callback" type="Callable" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_input_text_callback">
<return type="void" />
- <argument index="0" name="callback" type="Callable" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="callback" type="Callable" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_max_size">
<return type="void" />
- <argument index="0" name="max_size" type="Vector2i" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="max_size" type="Vector2i" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_min_size">
<return type="void" />
- <argument index="0" name="min_size" type="Vector2i" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="min_size" type="Vector2i" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Sets the minimum size for the given window to [code]min_size[/code] (in pixels).
[b]Note:[/b] By default, the main window has a minimum size of [code]Vector2i(64, 64)[/code]. This prevents issues that can arise when the window is resized to a near-zero size.
@@ -1143,8 +1143,8 @@
</method>
<method name="window_set_mode">
<return type="void" />
- <argument index="0" name="mode" type="int" enum="DisplayServer.WindowMode" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="mode" type="int" enum="DisplayServer.WindowMode" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Sets window mode for the given window to [code]mode[/code]. See [enum WindowMode] for possible values and how each mode behaves.
[b]Note:[/b] Setting the window to fullscreen forcibly sets the borderless flag to [code]true[/code], so make sure to set it back to [code]false[/code] when not wanted.
@@ -1152,8 +1152,8 @@
</method>
<method name="window_set_mouse_passthrough">
<return type="void" />
- <argument index="0" name="region" type="PackedVector2Array" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="region" type="PackedVector2Array" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Sets a polygonal region of the window which accepts mouse events. Mouse events outside the region will be passed through.
Passing an empty array will disable passthrough support (all mouse events will be intercepted by the window, which is the default behavior).
@@ -1185,64 +1185,64 @@
</method>
<method name="window_set_popup_safe_rect">
<return type="void" />
- <argument index="0" name="window" type="int" />
- <argument index="1" name="rect" type="Rect2i" />
+ <param index="0" name="window" type="int" />
+ <param index="1" name="rect" type="Rect2i" />
<description>
Sets the bounding box of control, or menu item that was used to open the popup window, in the screen coordinate system. Clicking this area will not auto-close this popup.
</description>
</method>
<method name="window_set_position">
<return type="void" />
- <argument index="0" name="position" type="Vector2i" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="position" type="Vector2i" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Sets the position of the given window to [code]position[/code].
</description>
</method>
<method name="window_set_rect_changed_callback">
<return type="void" />
- <argument index="0" name="callback" type="Callable" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="callback" type="Callable" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
<method name="window_set_size">
<return type="void" />
- <argument index="0" name="size" type="Vector2i" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="size" type="Vector2i" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Sets the size of the given window to [code]size[/code].
</description>
</method>
<method name="window_set_title">
<return type="void" />
- <argument index="0" name="title" type="String" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="title" type="String" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
Sets the title of the given window to [code]title[/code].
</description>
</method>
<method name="window_set_transient">
<return type="void" />
- <argument index="0" name="window_id" type="int" />
- <argument index="1" name="parent_window_id" type="int" />
+ <param index="0" name="window_id" type="int" />
+ <param index="1" name="parent_window_id" type="int" />
<description>
</description>
</method>
<method name="window_set_vsync_mode">
<return type="void" />
- <argument index="0" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="vsync_mode" type="int" enum="DisplayServer.VSyncMode" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
- Sets the VSync mode of the given window.
+ Sets the V-Sync mode of the given window.
See [enum DisplayServer.VSyncMode] for possible values and how they affect the behavior of your application.
Depending on the platform and used renderer, the engine will fall back to [constant VSYNC_ENABLED], if the desired mode is not supported.
</description>
</method>
<method name="window_set_window_event_callback">
<return type="void" />
- <argument index="0" name="callback" type="Callable" />
- <argument index="1" name="window_id" type="int" default="0" />
+ <param index="0" name="callback" type="Callable" />
+ <param index="1" name="window_id" type="int" default="0" />
<description>
</description>
</method>
@@ -1323,6 +1323,31 @@
</constant>
<constant name="SCREEN_SENSOR" value="6" enum="ScreenOrientation">
</constant>
+ <constant name="KEYBOARD_TYPE_DEFAULT" value="0" enum="VirtualKeyboardType">
+ Default text virtual keyboard.
+ </constant>
+ <constant name="KEYBOARD_TYPE_MULTILINE" value="1" enum="VirtualKeyboardType">
+ Multiline virtual keyboard.
+ </constant>
+ <constant name="KEYBOARD_TYPE_NUMBER" value="2" enum="VirtualKeyboardType">
+ Virtual number keypad, useful for PIN entry.
+ </constant>
+ <constant name="KEYBOARD_TYPE_NUMBER_DECIMAL" value="3" enum="VirtualKeyboardType">
+ Virtual number keypad, useful for entering fractional numbers.
+ </constant>
+ <constant name="KEYBOARD_TYPE_PHONE" value="4" enum="VirtualKeyboardType">
+ Virtual phone number keypad.
+ </constant>
+ <constant name="KEYBOARD_TYPE_EMAIL_ADDRESS" value="5" enum="VirtualKeyboardType">
+ Virtual keyboard with additional keys to assist with typing email addresses.
+ </constant>
+ <constant name="KEYBOARD_TYPE_PASSWORD" value="6" enum="VirtualKeyboardType">
+ Virtual keyboard for entering a password. On most platforms, this should disable autocomplete and autocapitalization.
+ [b]Note:[/b] This is not supported on HTML5. Instead, this behaves identically to [constant KEYBOARD_TYPE_DEFAULT].
+ </constant>
+ <constant name="KEYBOARD_TYPE_URL" value="7" enum="VirtualKeyboardType">
+ Virtual keyboard with additional keys to assist with typing URLs.
+ </constant>
<constant name="CURSOR_ARROW" value="0" enum="CursorShape">
</constant>
<constant name="CURSOR_IBEAM" value="1" enum="CursorShape">