summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--godot-headers/extension_api.json1516
-rw-r--r--include/godot_cpp/variant/color.hpp4
2 files changed, 1474 insertions, 46 deletions
diff --git a/godot-headers/extension_api.json b/godot-headers/extension_api.json
index b7b866f..8db0ace 100644
--- a/godot-headers/extension_api.json
+++ b/godot-headers/extension_api.json
@@ -2896,7 +2896,7 @@
},
{
"name": "KEY_MASK_CMD",
- "value": 134217728
+ "value": 268435456
},
{
"name": "KEY_MASK_KPAD",
@@ -13553,7 +13553,7 @@
"hash": 171192842
},
{
- "name": "to_linear",
+ "name": "srgb_to_linear",
"return_type": "Color",
"is_vararg": false,
"is_const": true,
@@ -13561,7 +13561,7 @@
"hash": 171193304
},
{
- "name": "to_srgb",
+ "name": "linear_to_srgb",
"return_type": "Color",
"is_vararg": false,
"is_const": true,
@@ -19482,6 +19482,31 @@
}
},
{
+ "name": "set_close_on_escape",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "enabled",
+ "type": "bool"
+ }
+ ]
+ },
+ {
+ "name": "get_close_on_escape",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "bool"
+ }
+ },
+ {
"name": "add_button",
"is_const": false,
"is_vararg": false,
@@ -19638,6 +19663,13 @@
},
{
"type": "bool",
+ "name": "dialog_close_on_escape",
+ "setter": "set_close_on_escape",
+ "getter": "get_close_on_escape",
+ "index": -1
+ },
+ {
+ "type": "bool",
"name": "dialog_autowrap",
"setter": "set_autowrap",
"getter": "has_autowrap",
@@ -25793,6 +25825,146 @@
]
},
{
+ "name": "AnimationLibrary",
+ "is_refcounted": true,
+ "is_instantiable": true,
+ "inherits": "Resource",
+ "api_type": "core",
+ "methods": [
+ {
+ "name": "add_animation",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135410024,
+ "return_value": {
+ "type": "enum::Error"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "StringName"
+ },
+ {
+ "name": "animation",
+ "type": "Animation"
+ }
+ ]
+ },
+ {
+ "name": "remove_animation",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "name",
+ "type": "StringName"
+ }
+ ]
+ },
+ {
+ "name": "rename_animation",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134224103,
+ "arguments": [
+ {
+ "name": "name",
+ "type": "StringName"
+ },
+ {
+ "name": "newname",
+ "type": "StringName"
+ }
+ ]
+ },
+ {
+ "name": "has_animation",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "bool"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "StringName"
+ }
+ ]
+ },
+ {
+ "name": "get_animation",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "Animation"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "StringName"
+ }
+ ]
+ },
+ {
+ "name": "get_animation_list",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "Array"
+ }
+ }
+ ],
+ "signals": [
+ {
+ "name": "animation_renamed",
+ "arguments": [
+ {
+ "name": "name",
+ "type": "Animation"
+ },
+ {
+ "name": "to_name",
+ "type": "Animation"
+ }
+ ]
+ },
+ {
+ "name": "animation_removed",
+ "arguments": [
+ {
+ "name": "name",
+ "type": "Animation"
+ }
+ ]
+ },
+ {
+ "name": "animation_added",
+ "arguments": [
+ {
+ "name": "name",
+ "type": "Animation"
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "AnimationNode",
"is_refcounted": true,
"is_instantiable": true,
@@ -30895,7 +31067,7 @@
],
"methods": [
{
- "name": "add_animation",
+ "name": "add_animation_library",
"is_const": false,
"is_vararg": false,
"is_static": false,
@@ -30910,13 +31082,13 @@
"type": "StringName"
},
{
- "name": "animation",
- "type": "Animation"
+ "name": "library",
+ "type": "AnimationLibrary"
}
]
},
{
- "name": "remove_animation",
+ "name": "remove_animation_library",
"is_const": false,
"is_vararg": false,
"is_static": false,
@@ -30930,7 +31102,7 @@
]
},
{
- "name": "rename_animation",
+ "name": "rename_animation_library",
"is_const": false,
"is_vararg": false,
"is_static": false,
@@ -30948,6 +31120,51 @@
]
},
{
+ "name": "has_animation_library",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "bool"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "StringName"
+ }
+ ]
+ },
+ {
+ "name": "get_animation_library",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "AnimationLibrary"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "StringName"
+ }
+ ]
+ },
+ {
+ "name": "get_animation_library_list",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "Array"
+ }
+ },
+ {
"name": "has_animation",
"is_const": true,
"is_vararg": false,
@@ -31418,6 +31635,23 @@
]
},
{
+ "name": "find_animation_library",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "StringName"
+ },
+ "arguments": [
+ {
+ "name": "animation",
+ "type": "Animation"
+ }
+ ]
+ },
+ {
"name": "clear_caches",
"is_const": false,
"is_vararg": false,
@@ -53731,7 +53965,7 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
- "hash": 136835882,
+ "hash": 260938124,
"arguments": [
{
"name": "from",
@@ -53750,6 +53984,11 @@
"type": "float",
"meta": "float",
"default_value": "1.0"
+ },
+ {
+ "name": "antialiased",
+ "type": "bool",
+ "default_value": "false"
}
]
},
@@ -54928,13 +55167,6 @@
},
{
"type": "bool",
- "name": "show_on_top",
- "setter": "_set_on_top",
- "getter": "_is_on_top",
- "index": -1
- },
- {
- "type": "bool",
"name": "clip_children",
"setter": "set_clip_children",
"getter": "is_clipping_children",
@@ -72849,13 +73081,6 @@
]
},
{
- "name": "DisplayServerOSX",
- "is_refcounted": false,
- "is_instantiable": false,
- "inherits": "DisplayServer",
- "api_type": "core"
- },
- {
"name": "ENetConnection",
"is_refcounted": true,
"is_instantiable": true,
@@ -75284,6 +75509,45 @@
]
},
{
+ "name": "EditorFileSystemImportFormatSupportQuery",
+ "is_refcounted": true,
+ "is_instantiable": false,
+ "inherits": "RefCounted",
+ "api_type": "editor",
+ "methods": [
+ {
+ "name": "_is_active",
+ "is_const": true,
+ "is_static": false,
+ "is_vararg": false,
+ "is_virtual": true,
+ "return_value": {
+ "type": "bool"
+ }
+ },
+ {
+ "name": "_get_file_extensions",
+ "is_const": true,
+ "is_static": false,
+ "is_vararg": false,
+ "is_virtual": true,
+ "return_value": {
+ "type": "PackedStringArray"
+ }
+ },
+ {
+ "name": "_query",
+ "is_const": true,
+ "is_static": false,
+ "is_vararg": false,
+ "is_virtual": true,
+ "return_value": {
+ "type": "bool"
+ }
+ }
+ ]
+ },
+ {
"name": "EditorImportPlugin",
"is_refcounted": true,
"is_instantiable": false,
@@ -91080,9 +91344,9 @@
{
"name": "GLTFMesh",
"is_refcounted": true,
- "is_instantiable": false,
+ "is_instantiable": true,
"inherits": "Resource",
- "api_type": "editor",
+ "api_type": "core",
"methods": [
{
"name": "get_mesh",
@@ -121099,6 +121363,33 @@
}
},
{
+ "name": "set_navigable_layers",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "navigable_layers",
+ "type": "int",
+ "meta": "uint32"
+ }
+ ]
+ },
+ {
+ "name": "get_navigable_layers",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "uint32"
+ }
+ },
+ {
"name": "set_target_location",
"is_const": false,
"is_vararg": false,
@@ -121297,6 +121588,13 @@
"setter": "set_path_max_distance",
"getter": "get_path_max_distance",
"index": -1
+ },
+ {
+ "type": "int",
+ "name": "navigable_layers",
+ "setter": "set_navigable_layers",
+ "getter": "get_navigable_layers",
+ "index": -1
}
]
},
@@ -121560,6 +121858,33 @@
}
},
{
+ "name": "set_navigable_layers",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "navigable_layers",
+ "type": "int",
+ "meta": "uint32"
+ }
+ ]
+ },
+ {
+ "name": "get_navigable_layers",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "uint32"
+ }
+ },
+ {
"name": "set_target_location",
"is_const": false,
"is_vararg": false,
@@ -121772,6 +122097,13 @@
"setter": "set_ignore_y",
"getter": "get_ignore_y",
"index": -1
+ },
+ {
+ "type": "int",
+ "name": "navigable_layers",
+ "setter": "set_navigable_layers",
+ "getter": "get_navigable_layers",
+ "index": -1
}
]
},
@@ -123935,7 +124267,7 @@
]
},
{
- "name": "free",
+ "name": "free_rid",
"is_const": true,
"is_vararg": false,
"is_static": false,
@@ -123943,7 +124275,7 @@
"hash": 134188199,
"arguments": [
{
- "name": "object",
+ "name": "rid",
"type": "RID"
}
]
@@ -124656,7 +124988,7 @@
]
},
{
- "name": "free",
+ "name": "free_rid",
"is_const": true,
"is_vararg": false,
"is_static": false,
@@ -124664,7 +124996,7 @@
"hash": 134188199,
"arguments": [
{
- "name": "object",
+ "name": "rid",
"type": "RID"
}
]
@@ -125280,6 +125612,19 @@
]
},
{
+ "name": "_shortcut_input",
+ "is_const": false,
+ "is_static": false,
+ "is_vararg": false,
+ "is_virtual": true,
+ "arguments": [
+ {
+ "name": "event",
+ "type": "InputEvent"
+ }
+ ]
+ },
+ {
"name": "_unhandled_input",
"is_const": false,
"is_static": false,
@@ -126012,6 +126357,31 @@
}
},
{
+ "name": "set_process_shortcut_input",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "enable",
+ "type": "bool"
+ }
+ ]
+ },
+ {
+ "name": "is_processing_shortcut_input",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "bool"
+ }
+ },
+ {
"name": "set_process_unhandled_input",
"is_const": false,
"is_vararg": false,
@@ -126098,7 +126468,7 @@
}
},
{
- "name": "print_stray_nodes",
+ "name": "print_orphan_nodes",
"is_const": false,
"is_vararg": false,
"is_static": false,
@@ -130773,6 +131143,779 @@
]
},
{
+ "name": "OpenXRAction",
+ "is_refcounted": true,
+ "is_instantiable": true,
+ "inherits": "Resource",
+ "api_type": "core",
+ "enums": [
+ {
+ "name": "ActionType",
+ "values": [
+ {
+ "name": "OPENXR_ACTION_BOOL",
+ "value": 0
+ },
+ {
+ "name": "OPENXR_ACTION_FLOAT",
+ "value": 1
+ },
+ {
+ "name": "OPENXR_ACTION_VECTOR2",
+ "value": 2
+ },
+ {
+ "name": "OPENXR_ACTION_POSE",
+ "value": 3
+ }
+ ]
+ }
+ ],
+ "methods": [
+ {
+ "name": "set_localized_name",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "localized_name",
+ "type": "String"
+ }
+ ]
+ },
+ {
+ "name": "get_localized_name",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "String"
+ }
+ },
+ {
+ "name": "set_action_type",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "action_type",
+ "type": "enum::OpenXRAction.ActionType"
+ }
+ ]
+ },
+ {
+ "name": "get_action_type",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "enum::OpenXRAction.ActionType"
+ }
+ },
+ {
+ "name": "set_toplevel_paths",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "toplevel_paths",
+ "type": "PackedStringArray"
+ }
+ ]
+ },
+ {
+ "name": "get_toplevel_paths",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "PackedStringArray"
+ }
+ }
+ ],
+ "properties": [
+ {
+ "type": "String",
+ "name": "localized_name",
+ "setter": "set_localized_name",
+ "getter": "get_localized_name",
+ "index": -1
+ },
+ {
+ "type": "int",
+ "name": "action_type",
+ "setter": "set_action_type",
+ "getter": "get_action_type",
+ "index": -1
+ },
+ {
+ "type": "Array",
+ "name": "toplevel_paths",
+ "setter": "set_toplevel_paths",
+ "getter": "get_toplevel_paths",
+ "index": -1
+ }
+ ]
+ },
+ {
+ "name": "OpenXRActionMap",
+ "is_refcounted": true,
+ "is_instantiable": true,
+ "inherits": "Resource",
+ "api_type": "core",
+ "methods": [
+ {
+ "name": "set_action_sets",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "action_sets",
+ "type": "Array"
+ }
+ ]
+ },
+ {
+ "name": "get_action_sets",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "Array"
+ }
+ },
+ {
+ "name": "get_action_set_count",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "int32"
+ }
+ },
+ {
+ "name": "find_action_set",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "OpenXRActionSet"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "String"
+ }
+ ]
+ },
+ {
+ "name": "get_action_set",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "OpenXRActionSet"
+ },
+ "arguments": [
+ {
+ "name": "idx",
+ "type": "int",
+ "meta": "int32"
+ }
+ ]
+ },
+ {
+ "name": "add_action_set",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "action_set",
+ "type": "OpenXRActionSet"
+ }
+ ]
+ },
+ {
+ "name": "remove_action_set",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "action_set",
+ "type": "OpenXRActionSet"
+ }
+ ]
+ },
+ {
+ "name": "set_interaction_profiles",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "interaction_profiles",
+ "type": "Array"
+ }
+ ]
+ },
+ {
+ "name": "get_interaction_profiles",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "Array"
+ }
+ },
+ {
+ "name": "get_interaction_profile_count",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "int32"
+ }
+ },
+ {
+ "name": "find_interaction_profile",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "OpenXRInteractionProfile"
+ },
+ "arguments": [
+ {
+ "name": "name",
+ "type": "String"
+ }
+ ]
+ },
+ {
+ "name": "get_interaction_profile",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "OpenXRInteractionProfile"
+ },
+ "arguments": [
+ {
+ "name": "idx",
+ "type": "int",
+ "meta": "int32"
+ }
+ ]
+ },
+ {
+ "name": "add_interaction_profile",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "interaction_profile",
+ "type": "OpenXRInteractionProfile"
+ }
+ ]
+ },
+ {
+ "name": "remove_interaction_profile",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "interaction_profile",
+ "type": "OpenXRInteractionProfile"
+ }
+ ]
+ },
+ {
+ "name": "create_default_action_sets",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134152229
+ }
+ ],
+ "properties": [
+ {
+ "type": "OpenXRActionSet",
+ "name": "action_sets",
+ "setter": "set_action_sets",
+ "getter": "get_action_sets",
+ "index": -1
+ },
+ {
+ "type": "OpenXRInteractionProfile",
+ "name": "interaction_profiles",
+ "setter": "set_interaction_profiles",
+ "getter": "get_interaction_profiles",
+ "index": -1
+ }
+ ]
+ },
+ {
+ "name": "OpenXRActionSet",
+ "is_refcounted": true,
+ "is_instantiable": true,
+ "inherits": "Resource",
+ "api_type": "core",
+ "methods": [
+ {
+ "name": "set_localized_name",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "localized_name",
+ "type": "String"
+ }
+ ]
+ },
+ {
+ "name": "get_localized_name",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "String"
+ }
+ },
+ {
+ "name": "set_priority",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "priority",
+ "type": "int",
+ "meta": "int32"
+ }
+ ]
+ },
+ {
+ "name": "get_priority",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "int32"
+ }
+ },
+ {
+ "name": "get_action_count",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "int32"
+ }
+ },
+ {
+ "name": "set_actions",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "actions",
+ "type": "Array"
+ }
+ ]
+ },
+ {
+ "name": "get_actions",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "Array"
+ }
+ },
+ {
+ "name": "add_action",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "action",
+ "type": "OpenXRAction"
+ }
+ ]
+ },
+ {
+ "name": "remove_action",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "action",
+ "type": "OpenXRAction"
+ }
+ ]
+ }
+ ],
+ "properties": [
+ {
+ "type": "String",
+ "name": "localized_name",
+ "setter": "set_localized_name",
+ "getter": "get_localized_name",
+ "index": -1
+ },
+ {
+ "type": "int",
+ "name": "priority",
+ "setter": "set_priority",
+ "getter": "get_priority",
+ "index": -1
+ },
+ {
+ "type": "OpenXRAction",
+ "name": "actions",
+ "setter": "set_actions",
+ "getter": "get_actions",
+ "index": -1
+ }
+ ]
+ },
+ {
+ "name": "OpenXRIPBinding",
+ "is_refcounted": true,
+ "is_instantiable": true,
+ "inherits": "Resource",
+ "api_type": "core",
+ "methods": [
+ {
+ "name": "set_action",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "action",
+ "type": "OpenXRAction"
+ }
+ ]
+ },
+ {
+ "name": "get_action",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "OpenXRAction"
+ }
+ },
+ {
+ "name": "get_path_count",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "int32"
+ }
+ },
+ {
+ "name": "set_paths",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "paths",
+ "type": "PackedStringArray"
+ }
+ ]
+ },
+ {
+ "name": "get_paths",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "PackedStringArray"
+ }
+ },
+ {
+ "name": "has_path",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "bool"
+ },
+ "arguments": [
+ {
+ "name": "arg0",
+ "type": "String"
+ }
+ ]
+ },
+ {
+ "name": "add_path",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "path",
+ "type": "String"
+ }
+ ]
+ },
+ {
+ "name": "remove_path",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "path",
+ "type": "String"
+ }
+ ]
+ }
+ ],
+ "properties": [
+ {
+ "type": "OpenXRAction",
+ "name": "action",
+ "setter": "set_action",
+ "getter": "get_action",
+ "index": -1
+ },
+ {
+ "type": "Array",
+ "name": "paths",
+ "setter": "set_paths",
+ "getter": "get_paths",
+ "index": -1
+ }
+ ]
+ },
+ {
+ "name": "OpenXRInteractionProfile",
+ "is_refcounted": true,
+ "is_instantiable": true,
+ "inherits": "Resource",
+ "api_type": "core",
+ "methods": [
+ {
+ "name": "set_interaction_profile_path",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "interaction_profile_path",
+ "type": "String"
+ }
+ ]
+ },
+ {
+ "name": "get_interaction_profile_path",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "String"
+ }
+ },
+ {
+ "name": "get_binding_count",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "int",
+ "meta": "int32"
+ }
+ },
+ {
+ "name": "get_binding",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "OpenXRIPBinding"
+ },
+ "arguments": [
+ {
+ "name": "index",
+ "type": "int",
+ "meta": "int32"
+ }
+ ]
+ },
+ {
+ "name": "set_bindings",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "bindings",
+ "type": "Array"
+ }
+ ]
+ },
+ {
+ "name": "get_bindings",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "Array"
+ }
+ }
+ ],
+ "properties": [
+ {
+ "type": "String",
+ "name": "interaction_profile_path",
+ "setter": "set_interaction_profile_path",
+ "getter": "get_interaction_profile_path",
+ "index": -1
+ },
+ {
+ "type": "OpenXRIPBinding",
+ "name": "bindings",
+ "setter": "set_bindings",
+ "getter": "get_bindings",
+ "index": -1
+ }
+ ]
+ },
+ {
+ "name": "OpenXRInterface",
+ "is_refcounted": true,
+ "is_instantiable": true,
+ "inherits": "XRInterface",
+ "api_type": "core",
+ "signals": [
+ {
+ "name": "session_begun"
+ },
+ {
+ "name": "pose_recentered"
+ },
+ {
+ "name": "session_focussed"
+ },
+ {
+ "name": "session_stopping"
+ },
+ {
+ "name": "session_visible"
+ }
+ ]
+ },
+ {
"name": "OptimizedTranslation",
"is_refcounted": true,
"is_instantiable": true,
@@ -131090,12 +132233,37 @@
]
},
{
+ "name": "is_item_separator",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "bool"
+ },
+ "arguments": [
+ {
+ "name": "idx",
+ "type": "int",
+ "meta": "int32"
+ }
+ ]
+ },
+ {
"name": "add_separator",
"is_const": false,
"is_vararg": false,
"is_static": false,
"is_virtual": false,
- "hash": 134152229
+ "hash": 139138028,
+ "arguments": [
+ {
+ "name": "text",
+ "type": "String",
+ "default_value": "\"\""
+ }
+ ]
},
{
"name": "clear",
@@ -131207,6 +132375,36 @@
"type": "int",
"meta": "int32"
}
+ },
+ {
+ "name": "has_selectable_items",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "bool"
+ }
+ },
+ {
+ "name": "get_selectable_item",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 172413545,
+ "return_value": {
+ "type": "int",
+ "meta": "int32"
+ },
+ "arguments": [
+ {
+ "name": "from_last",
+ "type": "bool",
+ "default_value": "false"
+ }
+ ]
}
],
"signals": [
@@ -152162,12 +153360,41 @@
"is_instantiable": true,
"inherits": "Node2D",
"api_type": "core",
+ "methods": [
+ {
+ "name": "set_gizmo_extents",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "extents",
+ "type": "float",
+ "meta": "float"
+ }
+ ]
+ },
+ {
+ "name": "get_gizmo_extents",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "float",
+ "meta": "float"
+ }
+ }
+ ],
"properties": [
{
"type": "float",
"name": "gizmo_extents",
- "setter": "_set_gizmo_extents",
- "getter": "_get_gizmo_extents",
+ "setter": "set_gizmo_extents",
+ "getter": "get_gizmo_extents",
"index": -1
}
]
@@ -173194,7 +174421,7 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
- "hash": 138021803,
+ "hash": 300073517,
"arguments": [
{
"name": "item",
@@ -173217,6 +174444,11 @@
"type": "float",
"meta": "float",
"default_value": "1.0"
+ },
+ {
+ "name": "antialiased",
+ "type": "bool",
+ "default_value": "false"
}
]
},
@@ -177362,6 +178594,56 @@
}
},
{
+ "name": "set_context_menu_enabled",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "enabled",
+ "type": "bool"
+ }
+ ]
+ },
+ {
+ "name": "is_context_menu_enabled",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "bool"
+ }
+ },
+ {
+ "name": "set_shortcut_keys_enabled",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134188166,
+ "arguments": [
+ {
+ "name": "enabled",
+ "type": "bool"
+ }
+ ]
+ },
+ {
+ "name": "is_shortcut_keys_enabled",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "bool"
+ }
+ },
+ {
"name": "set_deselect_on_focus_loss_enabled",
"is_const": false,
"is_vararg": false,
@@ -177411,6 +178693,14 @@
}
},
{
+ "name": "select_all",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134152229
+ },
+ {
"name": "get_selected_text",
"is_const": true,
"is_vararg": false,
@@ -177422,6 +178712,14 @@
}
},
{
+ "name": "deselect",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134152229
+ },
+ {
"name": "parse_bbcode",
"is_const": false,
"is_vararg": false,
@@ -177779,6 +179077,28 @@
"type": "Variant"
}
]
+ },
+ {
+ "name": "get_menu",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "PopupMenu"
+ }
+ },
+ {
+ "name": "is_menu_visible",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "bool"
+ }
}
],
"signals": [
@@ -177924,6 +179244,20 @@
"index": -1
},
{
+ "type": "bool",
+ "name": "context_menu_enabled",
+ "setter": "set_context_menu_enabled",
+ "getter": "is_context_menu_enabled",
+ "index": -1
+ },
+ {
+ "type": "bool",
+ "name": "shortcut_keys_enabled",
+ "setter": "set_shortcut_keys_enabled",
+ "getter": "is_shortcut_keys_enabled",
+ "index": -1
+ },
+ {
"type": "int",
"name": "text_direction",
"setter": "set_text_direction",
@@ -182367,6 +183701,27 @@
"value": 7
}
]
+ },
+ {
+ "name": "CodeCompletionLocation",
+ "values": [
+ {
+ "name": "LOCATION_LOCAL",
+ "value": 0
+ },
+ {
+ "name": "LOCATION_PARENT_MASK",
+ "value": 256
+ },
+ {
+ "name": "LOCATION_OTHER_USER_CODE",
+ "value": 512
+ },
+ {
+ "name": "LOCATION_OTHER",
+ "value": 1024
+ }
+ ]
}
],
"methods": [
@@ -199981,6 +201336,43 @@
]
},
{
+ "name": "set_tab_button_icon",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 134224103,
+ "arguments": [
+ {
+ "name": "tab_idx",
+ "type": "int",
+ "meta": "int32"
+ },
+ {
+ "name": "icon",
+ "type": "Texture2D"
+ }
+ ]
+ },
+ {
+ "name": "get_tab_button_icon",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135374120,
+ "return_value": {
+ "type": "Texture2D"
+ },
+ "arguments": [
+ {
+ "name": "tab_idx",
+ "type": "int",
+ "meta": "int32"
+ }
+ ]
+ },
+ {
"name": "get_tab_idx_at_point",
"is_const": true,
"is_vararg": false,
@@ -200124,6 +201516,15 @@
"name": "pre_popup_pressed"
},
{
+ "name": "tab_button_pressed",
+ "arguments": [
+ {
+ "name": "tab",
+ "type": "int"
+ }
+ ]
+ },
+ {
"name": "tab_selected",
"arguments": [
{
@@ -208492,7 +209893,7 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
- "hash": 135410057,
+ "hash": 173599466,
"return_value": {
"type": "PackedInt32Array"
},
@@ -208504,7 +209905,8 @@
{
"name": "grapheme_flags",
"type": "int",
- "meta": "int64"
+ "meta": "int64",
+ "default_value": "264"
}
]
},
@@ -212532,13 +213934,6 @@
]
},
{
- "name": "TextServerFallback",
- "is_refcounted": true,
- "is_instantiable": true,
- "inherits": "TextServerExtension",
- "api_type": "core"
- },
- {
"name": "TextServerManager",
"is_refcounted": false,
"is_instantiable": true,
@@ -222463,7 +223858,7 @@
"is_vararg": false,
"is_static": false,
"is_virtual": false,
- "hash": 173599466,
+ "hash": 1450926230,
"return_value": {
"type": "Rect2"
},
@@ -222477,6 +223872,12 @@
"type": "int",
"meta": "int32",
"default_value": "-1"
+ },
+ {
+ "name": "button_index",
+ "type": "int",
+ "meta": "int32",
+ "default_value": "-1"
}
]
},
@@ -225389,6 +226790,18 @@
"hash": 134152229
},
{
+ "name": "get_total_elapsed_time",
+ "is_const": true,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 135338183,
+ "return_value": {
+ "type": "float",
+ "meta": "float"
+ }
+ },
+ {
"name": "is_running",
"is_const": false,
"is_vararg": false,
@@ -243378,6 +244791,21 @@
}
},
{
+ "name": "set_extra_headers",
+ "is_const": false,
+ "is_vararg": false,
+ "is_static": false,
+ "is_virtual": false,
+ "hash": 139628078,
+ "arguments": [
+ {
+ "name": "headers",
+ "type": "PackedStringArray",
+ "default_value": "PackedStringArray()"
+ }
+ ]
+ },
+ {
"name": "listen",
"is_const": false,
"is_vararg": false,
diff --git a/include/godot_cpp/variant/color.hpp b/include/godot_cpp/variant/color.hpp
index ec02f1a..608f8af 100644
--- a/include/godot_cpp/variant/color.hpp
+++ b/include/godot_cpp/variant/color.hpp
@@ -171,14 +171,14 @@ public:
return res;
}
- inline Color to_linear() const {
+ inline Color srgb_to_linear() const {
return Color(
r < (real_t)0.04045 ? r * (real_t)(1.0 / 12.92) : Math::pow((r + (real_t)0.055) * (real_t)(1.0 / (1.0 + 0.055)), (real_t)2.4),
g < (real_t)0.04045 ? g * (real_t)(1.0 / 12.92) : Math::pow((g + (real_t)0.055) * (real_t)(1.0 / (1.0 + 0.055)), (real_t)2.4),
b < (real_t)0.04045 ? b * (real_t)(1.0 / 12.92) : Math::pow((b + (real_t)0.055) * (real_t)(1.0 / (1.0 + 0.055)), (real_t)2.4),
a);
}
- inline Color to_srgb() const {
+ inline Color linear_to_srgb() const {
return Color(
r < (real_t)0.0031308 ? (real_t)12.92 * r : (real_t)(1.0 + 0.055) * Math::pow(r, (real_t)(1.0 / 2.4)) - (real_t)0.055,
g < (real_t)0.0031308 ? (real_t)12.92 * g : (real_t)(1.0 + 0.055) * Math::pow(g, (real_t)(1.0 / 2.4)) - (real_t)0.055,